Shokyu Posted September 18, 2006 Share Posted September 18, 2006 Hi there i want to do 2 Pixelsearches for 2 different Areas like this : $Var1 = PixelSearch( 1023, 637, 1026, 637, 0XFFFFFF, 1 ) $Var2 = PixelSearch( 1030, 650, 1030, 650, 0X00000, 1 ) If $var1 = 0X000000 AND $var2 = 0XFFFFFF1 Then <expression>These are Areas in a Game wich shown randomly the X is always random but the Y dont changes ( Var1 is a unique Text , Var 2 is a Button )Seems not to work ( and yes i am a noob oO ) any ideas ? Link to comment Share on other sites More sharing options...
jvanegmond Posted September 18, 2006 Share Posted September 18, 2006 First of all, pixelsearch returns a array with 2 coordinates. Not a color.. github.com/jvanegmond Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted September 18, 2006 Moderators Share Posted September 18, 2006 (edited) $Var1 = PixelSearch( 1023, 637, 1026, 637, 0xFFFFFF) If Not IsArray($Var1) Then $Var2 = PixelSearch( 1030, 650, 1030, 650, 0x000000) If IsArray($Var2) Then ;Do something since 0x000000 EndIf Else ;Do something since 0xFFFFFF was found EndFunc Edited September 18, 2006 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Shokyu Posted September 18, 2006 Author Share Posted September 18, 2006 phew thank u guys for ur quick answers! Guess i need a bit more time with my lovely Autoit Helpfile ;-/ Will post any News asap Link to comment Share on other sites More sharing options...
evilelf Posted September 20, 2006 Share Posted September 20, 2006 yes Smoke_N U have showed me what i need to know I think and hope. Maken a AutoIt Clicker for Neopets Thought i can start Easyer then that bot. 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