Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; 1. Changes the resolution to 800x600
- ChangeDisplaySettings( (ClrDep:=32) , (Wid:=800) , (Hei:=600) , (Hz:=60) )
- ; 2. Launches Plants vs Zombies
- RunWait, steam://rungameid/3590, ,max, 28800
- ; 3. Wait For PvZ Relaunch (20 Sec Timeout)
- Process, Wait, C:\Program Files (x86)\Steam\steamapps\common\plants vs zombies\PlantsVsZombies.exe
- ; 4. Sets resolution back to 1920x1080
- ChangeDisplaySettings( (ClrDep:=32) , (Wid:=1920) , (Hei:=1080) , (Hz:=60) )
- ChangeDisplaySettings( cD, sW, sH, rR ) {
- VarSetCapacity(dM,156,0), NumPut(156,dM,36)
- DllCall( "EnumDisplaySettingsA", UInt,0, UInt,-1, UInt,&dM ), NumPut(0x5c0000,dM,40)
- NumPut(cD,dM,104), NumPut(sW,dM,108), NumPut(sH,dM,112), NumPut(rR,dM,120)
- Return DllCall( "ChangeDisplaySettingsA", UInt,&dM, UInt,0 )
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement