Advertisement
UmbertoKing

Untitled

Jan 12th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;#InstallMouseHook
  2. ;#InstallKeybdHook
  3. ;#UseHook On
  4. ;#MaxThreadsBuffer On
  5. ;#MaxThreadsPerHotkey 1
  6. ;#MaxThreads 128
  7.  
  8. #Persistent
  9. Process, Priority,,High
  10. ;PostMessage, 0x50,, 0x4090409,, A ;US Keyboard
  11. ;PostMessage, 0x50,, 0x4100410,, A ;IT Keyboard
  12. ;SetTitleMatchMode RegEx
  13. Setbatchlines -1
  14. setkeydelay 66
  15. GroupAdd, ROKgames, ahk_exe ROK.exe
  16. KeyDown := false
  17. Return
  18.  
  19. ;056     
  20. PgUp::
  21.     Suspend , Off
  22. Return
  23.  
  24. PgDn::
  25.     Suspend , On
  26. Return
  27.  
  28.  
  29. #IfWinActive ahk_group ROKgames
  30.  
  31. F1::
  32. KeyDown := !KeyDown
  33. if (KeyDown){
  34.     SendInput {c down}
  35.     SendInput {LButton down}
  36. } else {
  37.     SendInput {c up}
  38.     SendInput {LButton up}
  39. }
  40. Return
  41.  
  42. F3::
  43. KeyDown := !KeyDown
  44. if (KeyDown){
  45.     SendInput {c down}
  46.     SendInput {x down}
  47. } else {
  48.     SendInput {c up}
  49.     SendInput {x up}
  50. }
  51. Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement