Flam Posted January 5, 2009 Share Posted January 5, 2009 ControlClick("Window name", "", , , 1, 278, 231) $pos = MouseGetPos() if $color NOT = PixelGetColor($pos[0], $pos[1]) I didn't even test this so it might not even work.. but is there a better way of checking the pixel color on a certain coordinate relative to the window you're working on? (in case the user moves the window, I want it to still work) Link to comment Share on other sites More sharing options...
martin Posted January 5, 2009 Share Posted January 5, 2009 .. is there a better way of checking the pixel color on a certain coordinate relative to the window you're working on? (in case the user moves the window, I want it to still work)If you look in the help for PixelGetColor you will see a link to PixelCoordMode (Option) Follow the link. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
youknowwho4eva Posted January 5, 2009 Share Posted January 5, 2009 you could get the position and size of the window. wingetpos("window name") The returns are $array[0] = X position $array[1] = Y position $array[2] = Width $array[3] = Height Giggity Link to comment Share on other sites More sharing options...
Flam Posted January 5, 2009 Author Share Posted January 5, 2009 Thanks to both! 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