Sign in to follow this  
Followers 0
dryan

Undo WinActivate

3 posts in this topic

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!

Share this post


Link to post
Share on other sites



Try using WinGetState() and WinGetState().

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0