A,B 两个应用程序,在A中向B发送一个回车怎么发送?
vb编程,A,B 两个应用程序,在A中向B发送一个回车怎么发送?
仅仅只要给B窗口一个回车就可以了,不需要其他操作
[解决办法]
使用
Private Declare Function SendMessage Lib "user32 " Alias "SendMessageA " (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Private Declare Sub keybd_event Lib "user32 " Alias "keybd_event " (ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As Long)