Private Declare Function Getasynckeystate Lib "user32" Alias "GetAsyncKeyState" (ByVal VKEY As Long) As Integer
Private Declare Function GetKeyState Lib "user32" (ByVal nVirtKey As Long) As Integer
Dim keystate As Long
Dim fs As String
Private Sub Timer_Timer()
keystate = Getasynckeystate(vbKeyPrint)
If (keystate And &H1) = &H1 Then
Picture1.Picture = Clipboard.GetData
Saver
End If
End Sub
Private Function Saver()
cRew = Format(Now, "dd-mm-yyyy - hh.nn.ss")
fs = App.Path & "\Data\" & cRew & ".bmp"
SavePicture Picture1.Image, fs
End Function
Сейчас этот форум просматривают: PetalBot и гости: 16