请问怎样向当前窗口发送字符串Private Declare Function GetForegroundWindow Lib user32 () As LongPri
请问怎样向当前窗口发送字符串
Private Declare Function GetForegroundWindow Lib "user32" () As Long Private Declare Function SendMessage Lib "user32.dll" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Private Sub Timer1_Timer() SendMessage GetForegroundWindow(), WM_Char, 0, "abc" End Sub