Guest User

Cycle allied camera

a guest
Aug 16th, 2019
75
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
  2. ; #Warn  ; Enable warnings to assist with detecting common errors.
  3. SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
  4. SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
  5. #MaxHotkeysPerInterval 30000
  6.  
  7. $~MButton:: ; the $ prevents recursion
  8. counter++ ; counter is a custom variable
  9. If counter=1
  10.    Send {F1}
  11. If counter=2
  12.    Send {F2}
  13. If counter=3
  14.    Send {F3}
  15. If counter=4
  16.    Send {F4}
  17. If counter=4
  18.    counter:=0
  19. return
  20.  
  21. ~Space::
  22.    counter:=0
  23. return
RAW Paste Data