|
|
大佬,问下我想做到无缝循环按技能
但是在后面添加了循环代码后显示错误是为什么?
SetTimer, Label1, Off
SetTimer, Label2, Off
SetTimer, Label3, Off
SetTimer, Label4, Off
SetTimer, YS5, Off
SetTimer, JN1, Off
SetTimer, JN2, Off
SetTimer, JN3, Off
SetTimer, JN4, Off
SetTimer, JN5, Off
}
Else
{
SetTimer, Label1, 1
SetTimer, Label2, 1
SetTimer, Label3, 1
SetTimer, Label4, 1
SetTimer, YS5, 1
SetTimer, JN1, 1
SetTimer, JN2, 1
SetTimer, JN3, 1
SetTimer, JN4, 1
SetTimer, JN5, 1
}
Return
Label1:
{
if WinActive("ahk_exe PathOfExile_x64.exe")
Send,1
sleep 4000
}
return
Label2:
{
if WinActive("ahk_exe PathOfExile_x64.exe")
Send,2
sleep 2800
}
return
Label3:
{
if WinActive("ahk_exe PathOfExile_x64.exe")
Send,3
sleep 5600
}
return
Label4:
{
if WinActive("ahk_exe PathOfExile_x64.exe")
Send,4
sleep 4500
}
return
YS5:
{
if WinActive("ahk_exe PathOfExile_x64.exe")
Send,5
sleep 4800
}
return
JN1:
{
if WinActive("ahk_exe PathOfExile_x64.exe")
Send,Q
sleep 1880
}
return
JN2:
{
if WinActive("ahk_exe PathOfExile_x64.exe")
Send,W
sleep 2500
}
return
JN3:
{
if WinActive("ahk_exe PathOfExile_x64.exe")
Send,E
sleep 4000
}
return
JN4:
{
if WinActive("ahk_exe PathOfExile_x64.exe")
Send,R
sleep 340
Send,T
sleep 7160
}
return
JN5:
{
if WinActive("ahk_exe PathOfExile_x64.exe")
Send,t
sleep 4000
}
return |
|