Trement Posted February 11, 2005 Share Posted February 11, 2005 Hello everyone. I'm having trouble creating a script and was wondering if you could help me. I've read the Help Files but still find myself stuck. What I need to do is that the mouse will click colors that are a specific color, then when that pixel changes into another color I need it to look for another pixel thats the same color and keep on doing that. But, there is a catch I need it to press a certain key once another certain pixel changes color. All of this must be done in a certain are aswell. I've tried some methods but have failed in them and was wondering if any of you could help me? I would be very grateful. Thank you! Link to comment Share on other sites More sharing options...
Blue_Drache Posted February 11, 2005 Share Posted February 11, 2005 (edited) Hello everyone. I'm having trouble creating a script and was wondering if you could help me. I've read the Help Files but still find myself stuck. What I need to do is that the mouse will click colors that are a specific color, then when that pixel changes into another color I need it to look for another pixel thats the same color and keep on doing that. But, there is a catch I need it to press a certain key once another certain pixel changes color. All of this must be done in a certain are aswell. I've tried some methods but have failed in them and was wondering if any of you could help me? I would be very grateful. Thank you!<{POST_SNAPBACK}>PixelSearch. I broke it down for someone earlier today.http://www.autoitscript.com/forum/index.php?showtopic=8490Check that thread out.psuedocode:$keystroke = "A" While 1 Sleep(10) $color1 = Pixelsearch() $color2 = Pixelsearch() Select Case $color1 = true Mouseclick() Case $color2 = true Send($keystroke,0) EndSelect WendI leave it to you to find the devil in the details. Edited February 11, 2005 by Blue_Drache Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache Link to comment Share on other sites More sharing options...
Trement Posted February 11, 2005 Author Share Posted February 11, 2005 Thanks Blue Drache! Cheers! Link to comment Share on other sites More sharing options...
Trement Posted February 11, 2005 Author Share Posted February 11, 2005 I did it and came up with this: $keystroke = "F2" While 1 Sleep(10) $color1 = Pixelsearch( 200, 90, 1000, 600, AE0905, 5) $color2 = Pixelsearch( 165, 750, 167, 752, 858585, 5) Select Case $color1 = true Mouseclick("left") Case $color2 = true Send($keystroke, 1) EndSelect Wend I get an error which reads: Line 17 $color1 = Pixelsearch(200, 90, 1000, 600, AE0O05, 5) $color1 = Pixelsearch(200, 90, 1000, 600, ^ ERROR Error: Unknown function name. Where is the error? Link to comment Share on other sites More sharing options...
Blue_Drache Posted February 11, 2005 Share Posted February 11, 2005 (edited) I did it and came up with this:I get an error which reads:Line 17$color1 = Pixelsearch(200, 90, 1000, 600, AE0O05, 5)$color1 = Pixelsearch(200, 90, 1000, 600, ^ ERRORError: Unknown function name.Where is the error? <{POST_SNAPBACK}>Your number isn't in hex format.0xAE09050x858585 Edited February 11, 2005 by Blue_Drache Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache Link to comment Share on other sites More sharing options...
Trement Posted February 11, 2005 Author Share Posted February 11, 2005 Fixed that. But now I get: Line 21 Case $color1 = true Case $color1 = ^ ERRPR Error: Unknown function N=name. Link to comment Share on other sites More sharing options...
Developers Jos Posted February 11, 2005 Developers Share Posted February 11, 2005 Fixed that. But now I get:Line 21Case $color1 = trueCase $color1 = ^ ERRPRError: Unknown function N=name.<{POST_SNAPBACK}>psuedocode: 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...
Trement Posted February 12, 2005 Author Share Posted February 12, 2005 Errr.... what? I'm a noobie remember. Link to comment Share on other sites More sharing options...
Encryption Posted February 12, 2005 Share Posted February 12, 2005 It wasn't real code, pseudocode is like a mix of programming/english that peopl are suppose to find the real functions and replace it with them 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