请大虾将我这段 前台按键精灵代码 改成能够后台运行的
这是一个重复点击一个网页里某个位置的代码,我想让它能够在后台运行,我的鼠标能干点别的事,声明我不懂语法,我不要专业术语,改好后我复制粘贴,然后运行Rem=========...
这是一个重复点击一个网页里某个位置的代码,我想让它能够在后台运行,我的鼠标能干点别的事,声明我不懂语法,我不要专业术语,改好后我复制 粘贴,然后运行
Rem ==========以下是按键精灵录制的内容==========
MoveTo 58,98
LeftClick 1
Delay 15000
KeyDown 116,1
Delay 235
KeyUp 116,1
Delay 10000
MoveTo 599,211
Delay 3000
LeftClick 1
MoveTo 323,95
Delay 5235
LeftClick 1
MoveTo 892,564
Delay 3218
LeftDown 1
MoveTo 839,563
Delay 1157
LeftUp 1
MoveTo 1089,549
Delay 2609
KeyDown 99,1
Delay 156
KeyDown 96,1
Delay 32
KeyUp 99,1
Delay 140
KeyUp 96,1
MoveTo 866,741
Delay 2891
LeftClick 1
MoveTo 323,91
Delay 6312
LeftClick 1
Delay 125
LeftClick 1
Rem ==========以上是按键精灵录制的内容========== 展开
Rem ==========以下是按键精灵录制的内容==========
MoveTo 58,98
LeftClick 1
Delay 15000
KeyDown 116,1
Delay 235
KeyUp 116,1
Delay 10000
MoveTo 599,211
Delay 3000
LeftClick 1
MoveTo 323,95
Delay 5235
LeftClick 1
MoveTo 892,564
Delay 3218
LeftDown 1
MoveTo 839,563
Delay 1157
LeftUp 1
MoveTo 1089,549
Delay 2609
KeyDown 99,1
Delay 156
KeyDown 96,1
Delay 32
KeyUp 99,1
Delay 140
KeyUp 96,1
MoveTo 866,741
Delay 2891
LeftClick 1
MoveTo 323,91
Delay 6312
LeftClick 1
Delay 125
LeftClick 1
Rem ==========以上是按键精灵录制的内容========== 展开
3个回答
展开全部
//直接将下面的代码复制进去即可,我采用的是按键精灵8.0,测试过了可直接使用,开始前先用鼠标点击要运行的窗口,然后按F10运行就可以后台运行了,下面是代码部分。
dim hwnd
hwnd=Plugin.window.mousepoint()
s=Plugin.window.getclientrect(hwnd)
XYarray=split(s,"|",-1,1)
dx=XYarray(0)
dy=XYarray(1)
rem start
Call Plugin.Bkgnd.leftclick(hwnd,58-dx,98-dy)
Delay 15000
call plugin.Bkgnd.keydown(hwnd,116)
Delay 235
call plugin.Bkgnd.keyup(hwnd,116)
Delay 10000
Call Plugin.Bkgnd.moveto(hwnd,599-dx,211-dy)
Delay 3000
Call Plugin.Bkgnd.leftclick(hwnd,599-dx,211-dy)
Call Plugin.Bkgnd.moveto(hwnd,323-dx,95-dy)
Delay 5235
Call Plugin.Bkgnd.leftclick(hwnd,323-dx,95-dy)
Call Plugin.Bkgnd.moveto(hwnd,892-dx,564-dy)
Delay 3218
Call Plugin.Bkgnd.leftdown(hwnd,892-dx,564-dy)
Call Plugin.Bkgnd.moveto(hwnd,839-dx,563-dy)
Delay 1157
Call Plugin.Bkgnd.leftup(hwnd,839-dx,563-dy)
Call Plugin.Bkgnd.moveto(hwnd,1089-dx,549-dy)
Delay 2609
call plugin.Bkgnd.keyup(hwnd,99)
Delay 156
call plugin.Bkgnd.keyup(hwnd,96)
Delay 32
call plugin.Bkgnd.keyup(hwnd,99)
Delay 140
call plugin.Bkgnd.keyup(hwnd,96)
Call Plugin.Bkgnd.moveto(hwnd,866-dx,741-dy)
Delay 2891
Call Plugin.Bkgnd.leftclick(hwnd,866-dx,741-dy)
Call Plugin.Bkgnd.moveto(hwnd,323-dx,91-dy)
Delay 6312
Call Plugin.Bkgnd.leftclick(hwnd,323-dx,91-dy)
Delay 125
Call Plugin.Bkgnd.leftclick(hwnd,323-dx,91-dy)
goto start
dim hwnd
hwnd=Plugin.window.mousepoint()
s=Plugin.window.getclientrect(hwnd)
XYarray=split(s,"|",-1,1)
dx=XYarray(0)
dy=XYarray(1)
rem start
Call Plugin.Bkgnd.leftclick(hwnd,58-dx,98-dy)
Delay 15000
call plugin.Bkgnd.keydown(hwnd,116)
Delay 235
call plugin.Bkgnd.keyup(hwnd,116)
Delay 10000
Call Plugin.Bkgnd.moveto(hwnd,599-dx,211-dy)
Delay 3000
Call Plugin.Bkgnd.leftclick(hwnd,599-dx,211-dy)
Call Plugin.Bkgnd.moveto(hwnd,323-dx,95-dy)
Delay 5235
Call Plugin.Bkgnd.leftclick(hwnd,323-dx,95-dy)
Call Plugin.Bkgnd.moveto(hwnd,892-dx,564-dy)
Delay 3218
Call Plugin.Bkgnd.leftdown(hwnd,892-dx,564-dy)
Call Plugin.Bkgnd.moveto(hwnd,839-dx,563-dy)
Delay 1157
Call Plugin.Bkgnd.leftup(hwnd,839-dx,563-dy)
Call Plugin.Bkgnd.moveto(hwnd,1089-dx,549-dy)
Delay 2609
call plugin.Bkgnd.keyup(hwnd,99)
Delay 156
call plugin.Bkgnd.keyup(hwnd,96)
Delay 32
call plugin.Bkgnd.keyup(hwnd,99)
Delay 140
call plugin.Bkgnd.keyup(hwnd,96)
Call Plugin.Bkgnd.moveto(hwnd,866-dx,741-dy)
Delay 2891
Call Plugin.Bkgnd.leftclick(hwnd,866-dx,741-dy)
Call Plugin.Bkgnd.moveto(hwnd,323-dx,91-dy)
Delay 6312
Call Plugin.Bkgnd.leftclick(hwnd,323-dx,91-dy)
Delay 125
Call Plugin.Bkgnd.leftclick(hwnd,323-dx,91-dy)
goto start
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询