FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Screenshot of a messagebox in win32





fladry
Do anybody know how to take the screenshot of a message box in c/c++ win32 API? the program should be able to display any messag box, take it's snap and save in a bitmap or any other file. Please help
Marcuzzo
the key combination ALT+printscreen should take a snapshot of the active window... in MS

"SendInput" and "keybd_event" seem to be part of the windows API.
so you could try to send the key combination Alt+prntscreen and you should have a copy of the active window in the clipboard.

I hope this helps, srry, I'm not good enough with C++ to provide a working example.
cheers
fladry
I think that takes the screenshot of whole screen. I only need to take screenshot of the message box
Marcuzzo
printscreen alone does that.
but if you hold the Alt button down and hit printscreen it gets the Active/seletected window.
and a Win32 messagebox is a window...


check it on wikipedia
it says:
Quote:
In Microsoft Windows, pressing print screen will capture the entire screen, while pressing the alt key in combination with print screen will capture the currently selected window.
Related topics
Creating a new Operating System
resolved Win32.Beoven can't remove it =(
Programming in a lot of languages
send your linux screenshot :)
Do not download large corrupted files again
D: is not a valid win32 application --SOLVED
[php] Php Editor
Hulp nodig met porten openen op router.
My NOD32 was removed by Win32/Sality.NAJ Virus ?!!!!
funny ubuntu screenshot
Best screenshot from my 3D game = 50 Frih$
Caption my Funny screenshot
How to stop "Generic Host Process for Win32 Services&qu
200frih$ for taking a screenshot! [got it!]
Reply to topic    Frihost Forum Index -> Scripting -> Others

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.