Kjstan Posted July 5, 2012 Share Posted July 5, 2012 I am very new to this but I have managed to put together a simple autoit script that works pretty well for what I need it to do. I am happy with it however I was wondering if anyone would be able to explain or help me produce a chunk of script that I have been struggling to come up with. I have read a bit online I'm just not getting it to work correctly. I need to write something that detects when a specific pixel on my screen changes color and then terminates the script so it doesn't continually loop, thanks for any info you can give me. I would like to stress I am sort of new to this so if you can explain it as simple as possible I would appreciate it, thanks! Link to comment Share on other sites More sharing options...
Kjstan Posted July 5, 2012 Author Share Posted July 5, 2012 I came up with this: Local $coord = PixelSearch(1672, 122, 1707, 122, 0xFFCC66) If @error Then MsgBox(0, "RED!", "Stop!") Exit EndIf Would this work properly? From what I am thinking this will scan between 1672,122 and 1707-122 on my monitor for the color FFCC66.. If that color isn't there it opens the msg box and exits the script... Is this correct? Link to comment Share on other sites More sharing options...
JohnOne Posted July 5, 2012 Share Posted July 5, 2012 What happened when you tried it? AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. 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