可以,步骤如下:
1、点击调试,再点击PP移至例行程序
2、选择你创建的例行程序,点击确定
3、将机器人切换至自动模式,点击确认后机器人将运行你创建的程序
该情况实际运用比较麻烦,且如果你是使用实际机器人运行切记运行模式选择单周,防止程序循环运行产生碰撞
双线程后台,源代码复制进去运行吧。还有就是最好去下载最新的按键精灵9.0.官网去下个吧MessageBox "把鼠标放到第一个窗口"
Delay 3000
h1=Plugin.Window.MousePoint()
MessageBox "把鼠标放到第二个窗口"
Delay 3000
h2=Plugin.Window.MousePoint()
Delay 1000
BeginThread A1
BeginThread A2
Sub a1
Call Plugin.Bkgnd.Keydown(h1, 49)
Delay 50
Call Plugin.Bkgnd.Keyup(h1, 49)
Delay 3500
Call Plugin.Bkgnd.KeyDown(h1, 50)
Delay 50
Call Plugin.Bkgnd.KeyUp(h1, 50)
Delay 3500
Call Plugin.Bkgnd.KeyDown(h1, 51)
Delay 50
Call Plugin.Bkgnd.KeyUp(h1, 51)
Delay 3500
Call Plugin.Bkgnd.KeyDown(h1, 52)
Delay 50
Call Plugin.Bkgnd.KeyUp(h1, 52)
Call Plugin.Bkgnd.KeyDown(h1, 18)
Call Plugin.Bkgnd.KeyPress(h1, 9)
Delay 50
Call Plugin.Bkgnd.KeyUp(h1, 9)
Call Plugin.Bkgnd.Keyup(h1, 18)
Delay 50
End Sub
Sub a2
Call Plugin.Bkgnd.Keydown(h2, 49)
Delay 50
Call Plugin.Bkgnd.Keyup(h2, 49)
Delay 3500
Call Plugin.Bkgnd.KeyDown(h2, 50)
Delay 50
Call Plugin.Bkgnd.KeyUp(h2, 50)
Delay 3500
Call Plugin.Bkgnd.KeyDown(h2, 51)
Delay 50
Call Plugin.Bkgnd.KeyUp(h2, 51)
Delay 3500
Call Plugin.Bkgnd.KeyDown(h2, 52)
Delay 50
Call Plugin.Bkgnd.KeyUp(h2, 52)
Call Plugin.Bkgnd.KeyDown(h2, 18)
Call Plugin.Bkgnd.KeyPress(h2, 9)
Delay 50
Call Plugin.Bkgnd.KeyUp(h2, 9)
Call Plugin.Bkgnd.Keyup(h2, 18)
Delay 50
End Sub
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)