如何自动点击WebBrowser的中的FLASH

2024-12-26 22:38:49
推荐回答(1个)
回答1:

'那就试试?
Private Declare Sub mouse_event Lib "user32" (ByVal dwFlags As Long, ByVal dx As Long, ByVal dy As Long, ByVal cButtons As Long, ByVal dwExtraInfo As Long)
Private Const MOUSEEVENTF_LEFTDOWN = &H2
Private Const MOUSEEVENTF_LEFTUP = &H4

mouse_event MOUSEEVENTF_LEFTDOWN Or MOUSEEVENTF_LEFTUP, X, Y, 0, 0 'x 和y代表坐标,写出你的坐标,要自动就把这句写在计时器事件里