This is the code,
Code: Select all
F2::
sleep 500
mousemove 2299, 1196
click 2188, 1196 ;open interface
PixelSearch, Px, Py, 2188, 1196, 2188, 1196, 0xC8EAEE, 30, Fast ;cheack if we opened it
while(ErrorLevel == 0 ){
click
sleep 1000
PixelSearch, Px, Py, 2188, 1196, 2188, 1196, 0xC8EAEE, 30, Fast
}
sleep 250
click 438, 874
sleep 500
PixelSearch, Px, Py, 575, 276, 576, 277 0xF2F2F1, 30, Fast ;cheack if we selected it
while(ErrorLevel == 1 ){
click
sleep 1000
PixelSearch, Px, Py, 575, 276, 576, 277 0xF2F2F1, 30, Fast
}
while(ErrorLevel == 0 ){ ;deploy
click 2247, 1355
sleep 1000
PixelSearch, Px, Py, 575, 276, 576, 277 0xF2F2F1, 30, Fast
}
sleep 2000
Here is the log,
Code: Select all
004: SendMode,Input
005: SetWorkingDir,%A_ScriptDir%
006: SetTitleMatchMode,2
007: SetDefaultMouseSpeed,2
010: Return (5.25)
033: Sleep,500 (0.50)
034: MouseMove,2299,1196 (0.13)
035: Click,2188, 1196 (0.13)
036: PixelSearch,Px,Py,2188,1196,2188,1196,0xC8EAEE,30,Fast (0.03)
037: While,(ErrorLevel == 0 )
042: Sleep,250 (0.25)
043: Click,438, 874 (0.16)
044: Sleep,500 (0.50)
045: PixelSearch,Px,Py,575,276,576,277 0xF2F2F1,30,Fast (35.33)
077: Pause,Toggle (6.02)
Anyone know why this happens?