sendmessage函数(vb编程)
PrivateDeclareFunctionSendMessageLib"user32"Alias"SendMessageA"(ByValhwndAsLong,ByVal...
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
Const WM_LBUTTONDOWN = &H201
Const WM_LBUTTONUP = &H202
——————————————————————————————
SendMessage WebBrowser1.hwnd, WM_LBUTTONDOWN, 0, 0 '试着给WebBrowser1发送鼠标按键
当程序运行上面的语句时在SendMessage WebBrowser1.hwnd, WM_LBUTTONDOWN, 0, 0处出现"对象hwnd的方法IWebBrowser2失败"的错误 展开
Const WM_LBUTTONDOWN = &H201
Const WM_LBUTTONUP = &H202
——————————————————————————————
SendMessage WebBrowser1.hwnd, WM_LBUTTONDOWN, 0, 0 '试着给WebBrowser1发送鼠标按键
当程序运行上面的语句时在SendMessage WebBrowser1.hwnd, WM_LBUTTONDOWN, 0, 0处出现"对象hwnd的方法IWebBrowser2失败"的错误 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询