7,763
社区成员
发帖
与我相关
我的任务
分享
Private Sub Command1_Click()
SendKeys "^+F"
End Sub
Private Sub Command1_Click()
' SendKeys "^%{ESC}"
SendKeys "^%{DEL}"
End Sub
Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Long
Private Declare Function SetFocusAPI Lib "user32" Alias "SetFocus" (ByVal hwnd As Long) As Long
Private Declare Function BringWindowToTop Lib "user32" (ByVal hwnd As Long) As Long
Sub main()
Dim hwndHyperSnap As Long
hwndHyperSnap = FindWindowEx(0, 0, "HyperSnap 6 Window Class", vbNullString)
If hwndHyperSnap <> 0 Then
BringWindowToTop hwndHyperSnap
SetFocusAPI hwndHyperSnap
SendKeys "^+F"
End If
End Sub