Advertisement
Guest User

Untitled

a guest
Jul 26th, 2014
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. ChangeResolution(1280,960)
  2. Sleep 150
  3. Run "C:\Program Files\NVIDIA Corporation\Control Panel Client\nvcplui.exe"
  4. WinHide,NVIDIA Control Panel
  5. Run "steam://rungameid/730"
  6. Sleep 200
  7. ControlSend,Button4,^s,NVIDIA Control Panel
  8. Sleep 10000
  9. WinWaitClose,ahk_class Valve001
  10. WinShow,NVIDIA Control Panel
  11. Sleep 100
  12. ControlSend,Button4,^o,NVIDIA Control Panel
  13. ChangeResolution(1920,1080)
  14. ExitApp
  15.  
  16.  
  17. ChangeResolution(w,h) {
  18. VarSetCapacity(dM,156,0)
  19. NumPut(156,dM,36)
  20. NumPut(0x5c0000,dM,40)
  21. NumPut(w,dM,108)
  22. NumPut(h,dM,112)
  23. DllCall( "ChangeDisplaySettingsA", UInt,&dM, UInt,0 )
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement