Bizzet Posted April 13, 2012 Posted April 13, 2012 I need a possible way to search for a pixel, if that pixel is there, then click a button and continue the loop. If it is not there, I need it to pixel search a different pixel and if that comes back true then press a different button (button 2, lets call it) at a different pixel. Then it will continue pixel searching and clicking button 2 until the pixel search comes out false. Once it comes out false, it needs to start the whole process over again. This is what I would imagine it could be. While 1 PixelSearch(Coordinates1) If Not @error then MouseClick(Button1) Sleep(1000) MouseClick(Button2) Continue Loop If @error then Exit Loop End If While 1 PixelSearch(Coordinates2) If Not @error Then MouseClick(Button3) RestartLoop If @error then ExitLoop MouseClick(Button2) End If RestartAll ;unsure how to do this, it must restart from the beginning
Blue_Drache Posted April 13, 2012 Posted April 13, 2012 Try reading the help file a little closer for proper syntax. You've almost got a good program here. What's it for, anyway? Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache
jdelaney Posted April 13, 2012 Posted April 13, 2012 Gaming, of course (j/k...maybe). each while needs a corresponding wend, and change your 'end if' to 'endif'. IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.
Blue_Drache Posted April 14, 2012 Posted April 14, 2012 Gaming, of course (j/k...maybe). each while needs a corresponding wend, and change your 'end if' to 'endif'.I honestly think it is, considering his previous posts on the subject. Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache
Bizzet Posted April 16, 2012 Author Posted April 16, 2012 I honestly think it is, considering his previous posts on the subject.Actually, it's not. I quit the gaming for various reasons but this is for something I can not speak about, although it is allowed here.
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