Skip to content

A powershell script that automatically sets your framerate whenever you plug or unplug your laptop from power.

Notifications You must be signed in to change notification settings

GudBoiNero/winhz-plugged

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A powershell script that automatically sets your framerate whenever you plug or unplug your laptop from power.

Useful for gaming laptops that don't automatically change framerates when on battery.

Setup

  • Open up Task Scheduler on windows and add a new task.
  • Make it run on startup and ensure it runs this command C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
  • With the arguments field set as -WindowStyle Hidden -NoProfile -ExecutionPolicy Bypass -Command "cd 'C:\Program Files (x86)\BatteryRefreshLaptopMonitorScript'; .\BatteryRefreshLaptopMonitor.ps1 -HzOnBattery 60 -HzOnPlug 165"

You can change the location of the script "C:\Program Files (x86)\BatteryRefreshLaptopMonitorScript\" if you want. It doesn't matter, just make sure the -File argument is correct.

About

A powershell script that automatically sets your framerate whenever you plug or unplug your laptop from power.

Topics

Resources

Stars

Watchers

Forks