Jump to content

Recommended Posts

Here is the code:

$CHECK1 = PixelSearch(243, 392, 311, 448, 16777215, 0)
  If IsArray($CHECK1) = True Then
  send("{F4}")

After it send the F4 I want that it send F3, then I try to put:

$CHECK1 = PixelSearch(243, 392, 311, 448, 16777215, 0)
  If IsArray($CHECK1) = True Then
  send("{F4}")
                sleep(1000)
                send("{F3}")

But didn't work.

Link to post
Share on other sites

This code (which is basically the same as yours) works fine. I doubt you have posted all your code, maybe there's something wrong elsewhere to keep this snippet from working as you expect.

$CHECK1 = PixelSearch(490, 455, 530, 490, 0xFFFFFF)
If IsArray($CHECK1) = True Then
    Consolewrite("{F4}" & @LF)
    Sleep(1000)
    Consolewrite("{F3}" & @LF)
EndIf

- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Link to post
Share on other sites

No, Slower was my fault. I have a $Check3 which is with the wrong PixelSearch. This "second", I had change. Sorry about my fault. I'm innattentive.

Thank you so much SOMDCOMPUTERGUY for the code.

Thank you JOS for with my problem.

Edited by Math2
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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...