-
Hi all,
I working on a program that makes a printscreen every minute
and save's the image to disk.
I'm using this right now but i can't get it to work
Private Sub Timer1_Timer()
'vbKeyPrint &H2A PRINT SCREEN key
SendKeys &H2A
Form1.Picture = Clipboard.GetData(vbCFDIB)
SavePicture Image, "TEST.BMP" ' Save picture to file.
End Sub
Does anyone know what I'm doing wrong
Thanx ASTERIX
-
I learnt it couples of days before from this forum. You can try to search for 'capture screen' and there is a lot of message which works, telling you how to capture screen, form and active window and then put it into a picture box.
Printkey cannot be sent using the sendkey command, which I tried to do so before.