CCJ
Messages postés565Date d'inscriptionmercredi 19 mai 2004StatutMembreDernière intervention30 avril 2008
-
26 juil. 2004 à 11:20
Renfield
Messages postés17287Date d'inscriptionmercredi 2 janvier 2002StatutModérateurDernière intervention27 septembre 2021
-
26 juil. 2004 à 12:56
slt!
J'ai fait un prog de surveillance mais ca mache pas ce me dit: sub or fonction not defined
mon prog c'est:
Private Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As Long)
Dim numero
Private Sub Command1_Click()
numero = 0
Timer1.Enabled = True
Surveillance.Visible = False
End Sub
Private Sub Timer1_Timer()
' copie d'écran
keybd_event vbKeySnapshot, 0, 0&, 0&
'attente que l'image soit finie de copiée
DoEvents
'enregistre l'image
numero = numero + 1
nomfich = "image " + numero
SavePicture Clipboard.GetData(2), "c:" + nomfich
End Sub