Guest User

Example AutoHotKey

a guest
Jan 16th, 2016
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. bActive = 0
  2.  
  3.  
  4. ^l::
  5.     If (!bActive) {
  6.         bActive = 1
  7.         SetTimer, Deactivate, Off
  8.         Gosub, CaptureHD
  9.         SetTimer, CaptureHD, 20000
  10.         SoundBeep, 1000
  11.     } Else {
  12.         bActive = 0
  13.         SetTimer, CaptureHD, Off
  14.         SoundBeep, 500
  15.     }
  16. Return
  17.  
  18.  
  19. CaptureSD:
  20.    WinActivate, ahk_exe EliteDangerous64.exe
  21.     Send {F10 down}
  22.     Sleep 25
  23.     Send {F10 up}
  24. Return
  25.  
  26.  
  27. CaptureHD:
  28.    WinActivate, ahk_exe EliteDangerous64.exe
  29.     Send {alt down}{F10 down}
  30.     Sleep 25
  31.     Send {alt up}{F10 up}
  32. Return
  33.  
  34.  
  35. Deactivate:
  36.    bActive=0
  37. Return
  38.  
  39.  
  40. ^m::
  41.     Exitapp
  42. Return
Advertisement
Add Comment
Please, Sign In to add comment