[AHK-] 如何用上settimer

作者: lan661203 (廟小狼)   2013-08-18 20:05:57
my_switch=0
loop
{
if my_switch1=1
{
PixelSearch,x,y,320,140,480,260,0x5a82ef
if x > -1
{
send {f11}
sleep 2000
}
}
else
{}
if my_switch2=2
{
{
send {f6 2}
sleep 32000
}
}
else
{}
}
up::
my_switch1 := 1
return
down::
my_switch1 := 0
my_switch2 := 0
return
^right::
my_switch2 := 2
return
請問要如何加上settimer 才會讓延遲不會互相影響 各自執行並延遲
作者: fossil313 (陣雨)   2013-08-18 21:37:00
就...正常加啊 XD

Links booklink

Contact Us: admin [ a t ] ucptt.com