Created
June 21, 2014 23:58
-
-
Save hzoo/1d47ce6f2958ee9a05bb to your computer and use it in GitHub Desktop.
auto press spells for URF mode (use `, f6,f7,f8,f9,f10)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#NoEnv | |
#singleInstance, Force | |
#InstallKeybdHook | |
#MaxThreadsPerHotkey, 2 | |
#Persistent | |
#UseHook | |
SendMode Input | |
CoordMode,ToolTip,Screen | |
SetBatchLines, -1 | |
DetectHiddenWindows, On | |
SetTitleMatchMode, 2 | |
SetKeyDelay, 30,50 | |
SetMouseDelay 10 | |
sleepTimeQ := -300 | |
sleepTimeW := -500 | |
sleepTimeE := -600 | |
sleepTimeR := -14000 | |
sleepTimeItem2 := -1000 | |
;Untitled - Notepad | |
winname := "League of Legends (TM) Client" | |
;ControlSend,,q, %winname% | |
global running = true | |
#IfWinActive League of Legends (TM) Client | |
{ | |
F6:: | |
Goto, TimerQ | |
Return | |
F7:: | |
Goto, TimerW | |
Return | |
F8:: | |
Goto, TimerE | |
Return | |
F9:: | |
Goto, TimerR | |
Return | |
F10:: | |
Goto, TimerItem2 | |
Return | |
TimerQ: | |
Send {8 down} | |
Sleep 100 | |
Send {8 up} | |
;GetKeyState, state, RButton ; Right mouse button. | |
if (running) { | |
SetTimer, TimerQ, %sleepTimeQ% | |
;MsgBox running | |
} else { | |
;MsgBox not running | |
} | |
Return | |
TimerW: | |
Send {9 down} | |
Sleep 100 | |
Send {9 up} | |
if (running) { | |
SetTimer, TimerW, %sleepTimeW% | |
} | |
Return | |
TimerE: | |
Send {0 down} | |
Sleep 100 | |
Send {0 up} | |
if (running) { | |
SetTimer, TimerE, %sleepTimeE% | |
} | |
Return | |
TimerR: | |
Send {- down} | |
Sleep 100 | |
Send {- up} | |
if (running) { | |
SetTimer, TimerR, %sleepTimeR% | |
} | |
Return | |
TimerItem2: | |
Send {2 down} | |
Sleep 100 | |
Send {2 up} | |
if (running) { | |
SetTimer, TimerItem2, %sleepTimeItem2% | |
} | |
Return | |
} | |
`:: | |
running := !running | |
;MsgBox %running% | |
Return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment