Advertisement
Guest User

Untitled

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