求按键精灵判断某个点颜色 然后运行以下程序
我写了3段程序。现在要通过判断桌面一个点的颜色。然后执行第二段命令。然后重复多少次之后。执行第三段命令、如此重复。//Q价格选择快捷键选择变化仓位MoveTo1240,4...
我写了3段程序。现在要通过判断桌面一个点的颜色。然后执行第二段命令。然后重复多少次之后。执行第三段命令、如此重复。
//Q价格 选择快捷键 选择变化仓位
MoveTo 1240, 471
LeftClick 1
MoveTo 161, 749
LeftClick 1
KeyPress "Home", 1
KeyPress "Up", 4
KeyPress "Right", 9
KeyPress "BackSpace", 1
Delay 100
// 切换到表格复制仓位
KeyDown "Alt", 1
KeyPress "Tab", 1
KeyUp "Alt", 1
Delay 100
KeyPress "Left", 4
Delay 100
KeyDown 17, 1
KeyPress 67, 1
KeyUp 17, 1
Delay 100
// 返回价格位置 切换回黑屏 粘贴仓位
KeyPress "Right", 4
KeyDown "Alt", 1
KeyPress "Tab", 1
KeyUp "Alt", 1
Delay 100
KeyDown 17, 1
KeyPress 86, 1
KeyUp 17, 1
Delay 100
KeyPress "BackSpace", 1
Delay 100
KeyPress "PageDown", 1
Delay 100
//强Q价格
KeyPress "F12", 1
第一段
MoveTo 188, 196
Delay 100
LeftDown 1
Delay 100
MoveTo 226, 194
Delay 100
LeftUp 1
Delay 100
KeyDown 17, 1
KeyPress 67, 1
KeyUp 17, 1
Delay 100
KeyDown "Alt", 1
KeyPress "Tab", 1
KeyUp "Alt", 1
Delay 300
KeyDown 17, 1
KeyPress 86, 1
KeyUp 17, 1
Delay 100
KeyPress "Down", 1
Delay 100
KeyDown "Alt", 1
KeyPress "Tab", 1
KeyUp "Alt", 1
Delay 100
MoveTo 168, 702
LeftClick 1
第二段
MoveTo 188, 196
Delay 100
LeftDown 1
Delay 100
MoveTo 226, 194
Delay 100
LeftUp 1
Delay 100
KeyDown 17, 1
KeyPress 67, 1
KeyUp 17, 1
Delay 100
KeyDown "Alt", 1
KeyPress "Tab", 1
KeyUp "Alt", 1
Delay 300
KeyDown 17, 1
KeyPress 86, 1
KeyUp 17, 1
Delay 100
KeyPress "Down", 1
Delay 100
KeyDown "Alt", 1
KeyPress "Tab", 1
KeyUp "Alt", 1
Delay 100
MoveTo 168, 702
LeftClick 1
第三段
现在的需求是第一段运行之后。判断屏幕上桌面坐标973,89颜色为 007300 时、继续执行第二段命令
如果坐标973,89颜色为0000FF 则继续判断,知道坐标颜色变为007300 。然后重复执行1,2段命令
9次之后。执行1次第三段命令。如此重复
穷人没分。求大神帮帮忙 展开
//Q价格 选择快捷键 选择变化仓位
MoveTo 1240, 471
LeftClick 1
MoveTo 161, 749
LeftClick 1
KeyPress "Home", 1
KeyPress "Up", 4
KeyPress "Right", 9
KeyPress "BackSpace", 1
Delay 100
// 切换到表格复制仓位
KeyDown "Alt", 1
KeyPress "Tab", 1
KeyUp "Alt", 1
Delay 100
KeyPress "Left", 4
Delay 100
KeyDown 17, 1
KeyPress 67, 1
KeyUp 17, 1
Delay 100
// 返回价格位置 切换回黑屏 粘贴仓位
KeyPress "Right", 4
KeyDown "Alt", 1
KeyPress "Tab", 1
KeyUp "Alt", 1
Delay 100
KeyDown 17, 1
KeyPress 86, 1
KeyUp 17, 1
Delay 100
KeyPress "BackSpace", 1
Delay 100
KeyPress "PageDown", 1
Delay 100
//强Q价格
KeyPress "F12", 1
第一段
MoveTo 188, 196
Delay 100
LeftDown 1
Delay 100
MoveTo 226, 194
Delay 100
LeftUp 1
Delay 100
KeyDown 17, 1
KeyPress 67, 1
KeyUp 17, 1
Delay 100
KeyDown "Alt", 1
KeyPress "Tab", 1
KeyUp "Alt", 1
Delay 300
KeyDown 17, 1
KeyPress 86, 1
KeyUp 17, 1
Delay 100
KeyPress "Down", 1
Delay 100
KeyDown "Alt", 1
KeyPress "Tab", 1
KeyUp "Alt", 1
Delay 100
MoveTo 168, 702
LeftClick 1
第二段
MoveTo 188, 196
Delay 100
LeftDown 1
Delay 100
MoveTo 226, 194
Delay 100
LeftUp 1
Delay 100
KeyDown 17, 1
KeyPress 67, 1
KeyUp 17, 1
Delay 100
KeyDown "Alt", 1
KeyPress "Tab", 1
KeyUp "Alt", 1
Delay 300
KeyDown 17, 1
KeyPress 86, 1
KeyUp 17, 1
Delay 100
KeyPress "Down", 1
Delay 100
KeyDown "Alt", 1
KeyPress "Tab", 1
KeyUp "Alt", 1
Delay 100
MoveTo 168, 702
LeftClick 1
第三段
现在的需求是第一段运行之后。判断屏幕上桌面坐标973,89颜色为 007300 时、继续执行第二段命令
如果坐标973,89颜色为0000FF 则继续判断,知道坐标颜色变为007300 。然后重复执行1,2段命令
9次之后。执行1次第三段命令。如此重复
穷人没分。求大神帮帮忙 展开
- 你的回答被采纳后将获得:
- 系统奖励15(财富值+成长值)+难题奖励30(财富值+成长值)
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询