I need to take a Screen Shot every few sec and place it in a specific DIR in any formmat(jpg,gif,bmp) in numeric order(img1,img2,img3) can someone help me with this?
Printable View
I need to take a Screen Shot every few sec and place it in a specific DIR in any formmat(jpg,gif,bmp) in numeric order(img1,img2,img3) can someone help me with this?
Just are bare outline here, for one way to do this:
Start a loop
Increment counter
Send desktop a PrintScreen key (as if the user had pressed it)
Write contents of the clipboard object to a file named xxx(loopcounter) in the format of your choice
Loop
Clipboard info:
ms-help://MS.VSCC/MS.MSDNVS/cpref/html/frlrfSystemWindowsFormsClipboardClassTopic.htm
The bulk of the functions for writing JPG and GIF files are documented here:
ms-help://MS.VSCC/MS.MSDNVS/cpref/html/frlrfsystemdrawingimaging.htm
Good luck!
Thanks