Gar Posted April 15, 2009 Share Posted April 15, 2009 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? Link to comment Share on other sites More sharing options...
Gogeta70 Posted April 15, 2009 Share Posted April 15, 2009 Why not just take a screenshot of the entire gui and open the screenshot in photoshop or whatever and crop the individual controls? Link to comment Share on other sites More sharing options...
Gar Posted April 15, 2009 Author Share Posted April 15, 2009 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. Link to comment Share on other sites More sharing options...
LarryDalooza Posted April 15, 2009 Share Posted April 15, 2009 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. AutoIt has helped make me wealthy Link to comment Share on other sites More sharing options...
Gar Posted April 15, 2009 Author Share Posted April 15, 2009 Thanks! Writing it oneself is a learning experience anyway 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