But I think in my program to control directly, then reads picture edit, is the great god, how in my program to control?
I wrote a code, after the activation process, press the blank space key, but can't achieve!
Private Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte, ByVal Scan As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As Long)
Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Private Sub Command1_Click ()
Dim a2 As Integer
Dim str1 As Object
AppActivate "EOS Utility" 'this is the name of the camera
Sleep 600
Call keybd_event (32, 0, 0, 0) 'perform space operations
Form1. Show application form
End Sub
CodePudding user response:
You write that there must be some problem, first take a look at manual, keybd_event this statement right? Call to?CodePudding user response: