Sign in to follow this  
Followers 0
Gar

Taking a 'picture' of a control

5 posts in this topic

Is there a quick way to grab the image of a control so I can place it in my GUI? What I'm looking to do is create a sort of 'help tool' where you mouseover a control in another window and an image of that control appears in my GUI along with some text.

I searched and couldn't find a quick way to grab the exact graphic for a control. Does anyone know of one?

Share this post


Link to post
Share on other sites



Why not just take a screenshot of the entire gui and open the screenshot in photoshop or whatever and crop the individual controls?

Share this post


Link to post
Share on other sites

I'm not sure what you're suggesting, but my program's point is to provide dynamic analysis of the controls in another window. I'd like to 'grab' the appearance of the other control and place it in my gui temporarily in a 'this is what you're looking at' window.

Share this post


Link to post
Share on other sites

Search Terms (i hope): HwndUnderMouse getdc (or getwindowdc) BitBlt

In the old days I would just write the script for you... but I'm to old to rehash the old days.

Lar.


f_mrcleansmalm_77ce002.jpgAutoIt has helped make me wealthy

Share this post


Link to post
Share on other sites

Thanks! Writing it oneself is a learning experience anyway ^_^

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