Reptos Posted December 24, 2015 Share Posted December 24, 2015 How would i do another Pixel Search after this instead of it re doing the first one? Like once it has found this one i want it to do another one?While 1 $cords = PixelSearch(564, 188,710, 350,0x380030) If Not (@error) Then MouseClick("Left",$cords[0],$cords[1],1,1) ExitLoop EndIf WEnd Link to comment Share on other sites More sharing options...
kaisies Posted December 24, 2015 Share Posted December 24, 2015 (edited) While 1 $cords = PixelSearch(564, 188,710, 350,0x380030) If Not (@error) Then MouseClick("Left",$cords[0],$cords[1],1,1) ExitLoop EndIf WEnd Sleep(100) While 1 $cords = PixelSearch(564, 188,710, 350,0x380030) If Not (@error) Then MouseClick("Left",$cords[0],$cords[1],1,1) ExitLoop EndIf WEnd Edited December 24, 2015 by kaisies Link to comment Share on other sites More sharing options...
Reptos Posted December 24, 2015 Author Share Posted December 24, 2015 While 1 $cords = PixelSearch(564, 188,710, 350,0x380030) If Not (@error) Then MouseClick("Left",$cords[0],$cords[1],1,1) ExitLoop EndIf WEnd Sleep(100) While 1 $cords = PixelSearch(564, 188,710, 350,0x380030) If Not (@error) Then MouseClick("Left",$cords[0],$cords[1],1,1) ExitLoop EndIf WEndYup perfect! Now what would i do for it to repeat back to the top after the whole script is done Link to comment Share on other sites More sharing options...
Danyfirex Posted December 24, 2015 Share Posted December 24, 2015 Maybe reading help file...Saludos Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now