Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Error , and i dont know why.

$
0
0
What i wand to do:
Mouse move to 1-2-3-4, when run after first  if dont find pixel on color 2 to stop utill il show up.
Need to use some dll and why after until color 2 program not continue only stay and click same point?


[ autoit ]         
Func Me1() While 1 $Color1 = 0X77CAEB ; 463, 36 $Color2 = 0xB4C19E ; 164, 270 $errColor2 = 0xC58744 ; 164, 277 $Color3 = 0x41B28 ; 633, 213 $Color1 = PixelSearch (463, 36, 800, 600, 0X77CAEB, 0, 4); Color 1!!!! if Not @error Then MouseClick ( "Left" , $Color1[0] + Random(1, 5), $Color1[1] - Random(1, 5), 1 , random(3, 7)) Sleep(Random(1000, 1500)) If PixelGetColor(164, 270) <> "0xB4C19E" Then ; Color 2 Do Sleep(Random(1000, 1500)) MouseMove(164 + Random(1,3),270 + Random(1,3), random(5, 9)) Sleep(Random(500, 1000)) MouseClick ( "Left", 164 + Random(1,3),270 + Random(1,3), 1) Sleep(Random(500, 1000)) Until PixelGetColor(164, 270) = "0xB4C19E" ; Color 2 Here i want to stop on Run 2 utill color Error Finish? ;Here stop not move next? If PixelGetColor(633, 213) <> "0x41B28" Then; Color 3 Do Sleep(Random(500, 1000)) MouseMove (633 + Random(1,3),213 + Random(1,3), random(5, 9)) Sleep(Random(500, 1000)) MouseClick ( "Right", 633 + Random(1,3), 213 + Random(1,3), 1) Sleep(Random(1000, 2000)) Until PixelGetColor(633, 213) = "0x41B284" ; Color 3 If PixelGetColor(436, 36) <> "0X77CAEB" Then ; Color 1 Do Sleep(Random(500, 1000)) MouseMove(463 + Random(1,3),36 + Random(1,3), random(5, 9)) Sleep(Random(500, 1000)) MouseClick ( "Left", 463 + Random(1,3),36 + Random(1,3), 1) Sleep(Random(500, 1000)) Until PixelGetColor(436, 36) = "0X77CAEB" ; Color 1 If @error Then Do Sleep(Random(500, 1000)) Until PixelGetColor(164, 270) = "0xB4C19E" ; Color 2 NOT Error EndIf EndIf EndIf EndIf EndIf EndIf EndIf WEnd EndFunc

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>