dryan Posted July 3, 2007 Share Posted July 3, 2007 Is there an easy way to undo WinActivate? I need to grab a pixel color from a specific window and then restore it to the way it was. Alternatively, is there a way to grab a pixel from a window or control that isn't necessarily visible on the screen? I'm thinking something like ControlSend or ControlCommand that can grab a pixel color using coordinates relative to a control. (I know how to set PixelCoordMode and use PixelGetColor but as far as I know, these only work on visible windows.) Thanks! Link to comment Share on other sites More sharing options...
poisonkiller Posted July 3, 2007 Share Posted July 3, 2007 Try using WinGetState() and WinGetState(). Link to comment Share on other sites More sharing options...
Ozi Posted July 3, 2007 Share Posted July 3, 2007 Is there an easy way to undo WinActivate?I need to grab a pixel color from a specific window and then restore it to the way it was.Alternatively, is there a way to grab a pixel from a window or control that isn't necessarily visible on the screen? I'm thinking something like ControlSend or ControlCommand that can grab a pixel color using coordinates relative to a control. (I know how to set PixelCoordMode and use PixelGetColor but as far as I know, these only work on visible windows.)Thanks!Just get the control ID so you won't have to use coordinates. 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