08-16-2005 11:22 AM
08-16-2005 12:23 PM
I'll throw out the nasty way first for others to improve on:
You can use the user32.dll to enter key-presses, I've built labview serial and tcp/ip wrappers to do that for control of unfriendly instrument applications. You would enter <alt><prt scr> and then your screen capture is on the clipboard.
somebody come up with a better solution...
Sheldon
08-16-2005 01:16 PM
I do not know of a pre-canned vi to do this but sheldon's solution should work, I believe that he is creating keystrokes from at the OS API level to simulate pressing the key combo to trigger the screen capture program. There are a few other ways to do this (none labview native since this is at a level below the labview application and will be windows platform dependent). You can write a win32 c program to do this and call it from windows, the program is relatively short I wrote one a while back (modified a version of a source I downloaded) using gdi calls where you get a handle to the desktop window, create a compatible DC copy the DC to a bitmap and save it to file, or maybe there is a way to invoke the screen capture program with a script or directly from the WIN32 api. Sorry I don't have a simple answer but there might be a simple way to invoke the screen capture program directly without any dll calls from labview.
08-16-2005 02:06 PM