[AHK-] 當某點出現指定顏色時做相應動作

作者: ff760725 (㊣矮㊣肥㊣醜㊣窮㊣宅)   2015-08-11 12:13:36
不知道為啥無法Loop,只有在Reload之後才會做動作...
Loop
{
PixelGetColor, Reload1 , 1082,182
PixelGetColor, Reload2 , 1105,207
PixelGetColor, Reload3 , 845,409
PixelGetColor, Reload4 , 940,818
PixelGetColor, Reload5 , 1388,273
if ( Reload1 = "0XB17F3C")
{
MouseMove, 1082,182
MouseClick
Sleep 500
}
if( Reload2 = "0XD8D8D8")
{
MouseMove, 1105,207
MouseClick
Sleep 500
}
if( Reload3 = "0XDADADA")
{
MouseMove, 845,409
MouseClick
Sleep 500
}
if( Reload4 = "0XD2D2D3")
{
MouseMove, 940,818
MouseClick
Sleep 500
}
if( Reload5 = "0XDF95FF")
{
MouseMove, 832, 525
MouseClick
Sleep 500
}
}
作者: notlo (notlo)   2015-08-23 17:41:00
是不是你只loop一次而己?

Links booklink

Contact Us: admin [ a t ] ucptt.com