Advertisement
Guest User

Untitled

a guest
Apr 9th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #NoTrayIcon
  2. #NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
  3. ; #Warn  ; Enable warnings to assist with detecting common errors.
  4. SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
  5. SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
  6. SetTitleMatchMode, 2
  7.  
  8. Run, ".\program.exe"
  9. Overclock_On:
  10. {
  11.     Send {LAlt down}
  12.     Sleep, 50
  13.     Send {4}
  14.     Sleep, 50
  15.     Send {LAlt up}
  16.     return
  17. }
  18. Process, WaitClose, program.exe
  19. Overclock_Off:
  20. {
  21.     Send {LAlt down}
  22.     Sleep, 50
  23.     Send {5}
  24.     Sleep, 50
  25.     Send {LAlt up}
  26.     return
  27. }
  28. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement