Mutalgaettae Posted October 8, 2009 Posted October 8, 2009 I got help from this forum to detect change in pixel colour. it was detecting certain colour and pressing a button... however i need something a bit more complex... in a pixel range like a retangle let say... if there is no blue then a button would be pressed.. for example, a button press upon absenct of a certain colour... plz help me out and write me a code... I tried my best.. but itz hopeless
bo8ster Posted October 8, 2009 Posted October 8, 2009 Have a good search of the forum and you will find may examples of what you ask for. Post your code because code says more then your words can. SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y. Use Opt("MustDeclareVars", 1)[topic="84960"]Brett F's Learning To Script with AutoIt V3[/topic][topic="21048"]Valuater's AutoIt 1-2-3, Class... is now in Session[/topic]Contribution: [topic="87994"]Get SVN Rev Number[/topic], [topic="93527"]Control Handle under mouse[/topic], [topic="91966"]A Presentation using AutoIt[/topic], [topic="112756"]Log ConsoleWrite output in Scite[/topic]
Gogeta70 Posted October 8, 2009 Posted October 8, 2009 Simple, use pixelsearch: PixelSearch ( left, top, right, bottom, color [, shade-variation [, step [, hwnd]]] ) $search = PixelSearch(left, top, right, bottom, 0x0000FF) If @error Then ControlClick(whatever) EndIf
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