>>Hi All
>>
>>What is the simplst way to dump the entire Windows screen to a bmp, or png/gif/whatever, image file using VFP9?
>>
>>Thanks
>
>Hi Jos,
>
>Not exactly what you are looking for, but this routine copies the current open window to the clipboard.
>
>I also strongly recommend the free GPImage2 utility which you can download at
http://cchalom.sites.uol.com.br/GPIMAGE/index.htm. If you modify my routine and/or use a function or two from GPInage, you should be able to get the result you want.
>
>DECLARE INTEGER keybd_event IN Win32API ;
> INTEGER, INTEGER, INTEGER, INTEGER
>*
>* Do an Alt-Printscreen
>*
>#DEFINE VK_LMENU 164
>#DEFINE VK_SNAPSHOT 44
>#DEFINE KEYEVENTF_EXTENDEDKEY 1
>#DEFINE KEYEVENTF_KEYUP 2
>DOEVENTS
>keybd_event( VK_LMENU, 0, KEYEVENTF_EXTENDEDKEY, 0 )
>INKEY(0.01)
>keybd_event( VK_SNAPSHOT, 0, KEYEVENTF_EXTENDEDKEY, 0 )
>INKEY(0.01)
>keybd_event( VK_SNAPSHOT, 0, KEYEVENTF_EXTENDEDKEY + KEYEVENTF_KEYUP, 0 )
>INKEY(0.01)
>keybd_event( VK_LMENU, 0, KEYEVENTF_EXTENDEDKEY + KEYEVENTF_KEYUP, 0 )
>DOEVENTS
Thanks Tore.
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.