Math2 Posted December 31, 2011 Share Posted December 31, 2011 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 comment Share on other sites More sharing options...
somdcomputerguy Posted December 31, 2011 Share Posted December 31, 2011 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 comment Share on other sites More sharing options...
Math2 Posted December 31, 2011 Author Share Posted December 31, 2011 Oh, thank you, it worked, but all my code is slower Link to comment Share on other sites More sharing options...
Developers Jos Posted December 31, 2011 Developers Share Posted December 31, 2011 Oh, thank you, it worked, but all my code is slower Probably about a second? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Math2 Posted December 31, 2011 Author Share Posted December 31, 2011 (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 December 31, 2011 by Math2 Link to comment Share on other sites More sharing options...
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