Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;#InstallMouseHook
- ;#InstallKeybdHook
- ;#UseHook On
- ;#MaxThreadsBuffer On
- ;#MaxThreadsPerHotkey 1
- ;#MaxThreads 128
- #Persistent
- Process, Priority,,High
- ;PostMessage, 0x50,, 0x4090409,, A ;US Keyboard
- ;PostMessage, 0x50,, 0x4100410,, A ;IT Keyboard
- ;SetTitleMatchMode RegEx
- Setbatchlines -1
- setkeydelay 66
- GroupAdd, ROKgames, ahk_exe ROK.exe
- KeyDown := false
- Return
- ;056
- PgUp::
- Suspend , Off
- Return
- PgDn::
- Suspend , On
- Return
- #IfWinActive ahk_group ROKgames
- F1::
- KeyDown := !KeyDown
- if (KeyDown){
- SendInput {c down}
- SendInput {LButton down}
- } else {
- SendInput {c up}
- SendInput {LButton up}
- }
- Return
- F3::
- KeyDown := !KeyDown
- if (KeyDown){
- SendInput {c down}
- SendInput {x down}
- } else {
- SendInput {c up}
- SendInput {x up}
- }
- Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement