Sign in to follow this  
Followers 0
Math2

After Code

5 posts in this topic

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.

Share this post


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.

Share this post


Link to post
Share on other sites

Oh, thank you, it worked, but all my code is slower :)

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

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

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