Sign in to follow this  
Followers 0
Bizzet

How would I accomplish this pixel search?

5 posts in this topic

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

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0