发段模拟鼠标的代码,自己模仿下吧
index=4
Set WshShell = CreateObject("Wscrīpt.Shell")
For i = 1 To index
WshShell.sendKeys "{DOWN}"
Next
WshShell.sendKeys "{ENTER}"
Set WshShell = nothing
控制鼠标随机点击
Set devicereplay=CreateObject("Mercury.DeviceReplay")
For j= 1 to 1000
x=randomNumber(220,1680)
y=randomNumber(182,515)
devicereplay.MouseMove x,y
devicereplay.MouseClick x,y,LEFT_MOUSE_BUTTON
reporter.ReportEvent micDone,"MouseClick","鼠标左键单击位置:"&x&","&y
next