Jump to content

How would I accomplish this pixel search?


Recommended Posts

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
Link to comment
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

Link to comment
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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...