按键精灵如何实现鼠标和键盘的后台操作?下面是我写的前台代码,
我想实现在特定的坐标按下F1之后,同时按下鼠标右键然后同时F1和鼠标右键弹起,前台我已经写出来了。但是如何转换成后台呢?求指教MoveTo481,90Delay1000L...
我想实现在特定的坐标按下F1之后,同时按下鼠标右键然后同时F1和鼠标右键弹起,前台我已经写出来了。但是如何转换成后台呢?求指教
MoveTo 481, 90
Delay 1000
LeftClick 1
Delay 1000
MoveTo 671, 267
RightDown 1
KeyPress "F1", 1
RightUp 1
Delay 1500
KeyPress "Esc", 2
Delay 1500
MoveTo 607, 104
Delay 1000
LeftClick 1
Delay 1000
MoveTo 671, 267
RightDown 1
KeyPress "F1", 1
RightUp 1
Delay 1500
KeyPress "Esc", 2
Delay 1500
MoveTo 721, 103
Delay 1000
LeftClick 1
Delay 1000
MoveTo 671, 267
RightDown 1
KeyPress "F1", 1
RightUp 1
Delay 1500
KeyPress "Esc", 2
Delay 1500
MoveTo 824, 98
Delay 1000
LeftClick 1
Delay 1000
MoveTo 671, 267
RightDown 1
KeyPress "F1", 1
RightUp 1
Delay 1500
KeyPress "Esc", 2
Delay 1500
MoveTo 925, 106
Delay 1000
LeftClick 1
Delay 1000
MoveTo 671, 267
RightDown 1
KeyPress "F1", 1
RightUp 1
Delay 1500
KeyPress "Esc", 2
Delay 1500
MoveTo 940, 183
Delay 1000
LeftClick 1
Delay 1000
MoveTo 671, 267
RightDown 1
KeyPress "F1", 1
RightUp 1
Delay 1500
KeyPress "Esc", 2
Delay 1500
MoveTo 845, 180
Delay 1000
LeftClick 1
Delay 1000
MoveTo 671, 267
RightDown 1
KeyPress "F1", 1
RightUp 1
Delay 1500
KeyPress "Esc", 2
Delay 1500
MoveTo 715, 171
Delay 1000
LeftClick 1
Delay 1000
MoveTo 671, 267
RightDown 1
KeyPress "F1", 1
RightUp 1
Delay 1500
KeyPress "Esc", 2
Delay 1500
MoveTo 603, 166
Delay 1000
LeftClick 1
Delay 1000
MoveTo 671, 267
RightDown 1
KeyPress "F1", 1
RightUp 1
Delay 1500
KeyPress "Esc", 2
Delay 2000
KeyPress "G", 1
MoveTo 899, 334
LeftClick 1
Delay 5000
MoveTo 246, 43
LeftClick 1
Delay 2000 展开
MoveTo 481, 90
Delay 1000
LeftClick 1
Delay 1000
MoveTo 671, 267
RightDown 1
KeyPress "F1", 1
RightUp 1
Delay 1500
KeyPress "Esc", 2
Delay 1500
MoveTo 607, 104
Delay 1000
LeftClick 1
Delay 1000
MoveTo 671, 267
RightDown 1
KeyPress "F1", 1
RightUp 1
Delay 1500
KeyPress "Esc", 2
Delay 1500
MoveTo 721, 103
Delay 1000
LeftClick 1
Delay 1000
MoveTo 671, 267
RightDown 1
KeyPress "F1", 1
RightUp 1
Delay 1500
KeyPress "Esc", 2
Delay 1500
MoveTo 824, 98
Delay 1000
LeftClick 1
Delay 1000
MoveTo 671, 267
RightDown 1
KeyPress "F1", 1
RightUp 1
Delay 1500
KeyPress "Esc", 2
Delay 1500
MoveTo 925, 106
Delay 1000
LeftClick 1
Delay 1000
MoveTo 671, 267
RightDown 1
KeyPress "F1", 1
RightUp 1
Delay 1500
KeyPress "Esc", 2
Delay 1500
MoveTo 940, 183
Delay 1000
LeftClick 1
Delay 1000
MoveTo 671, 267
RightDown 1
KeyPress "F1", 1
RightUp 1
Delay 1500
KeyPress "Esc", 2
Delay 1500
MoveTo 845, 180
Delay 1000
LeftClick 1
Delay 1000
MoveTo 671, 267
RightDown 1
KeyPress "F1", 1
RightUp 1
Delay 1500
KeyPress "Esc", 2
Delay 1500
MoveTo 715, 171
Delay 1000
LeftClick 1
Delay 1000
MoveTo 671, 267
RightDown 1
KeyPress "F1", 1
RightUp 1
Delay 1500
KeyPress "Esc", 2
Delay 1500
MoveTo 603, 166
Delay 1000
LeftClick 1
Delay 1000
MoveTo 671, 267
RightDown 1
KeyPress "F1", 1
RightUp 1
Delay 1500
KeyPress "Esc", 2
Delay 2000
KeyPress "G", 1
MoveTo 899, 334
LeftClick 1
Delay 5000
MoveTo 246, 43
LeftClick 1
Delay 2000 展开
2个回答
展开全部
//下面这句是得到当前最前面的窗口句柄
Plugin Hwnd = Window.Foreground()
Rem 标记010
Delay 1000
//下面这句用于向后台窗口句柄(变量:Hwnd)发送一个键盘(扫描码:49)按键
Plugin Bkgnd.KeyPress(Hwnd, 49)
Delay 1000
//下面这句用于向后台窗口句柄(变量:Hwnd)发送一个键盘(扫描码:50)按键
Plugin Bkgnd.KeyPress(Hwnd, 50)
Delay 1000
//下面这句用于向后台窗口句柄(变量:Hwnd)发送一个键盘(扫描码:51)按键
Plugin Bkgnd.KeyPress(Hwnd, 51)
Goto 标记010
//==================================================================
Delay 1000这句是延时1秒可以按自已需要修改
Plugin Hwnd = Window.Foreground()
Rem 标记010
Delay 1000
//下面这句用于向后台窗口句柄(变量:Hwnd)发送一个键盘(扫描码:49)按键
Plugin Bkgnd.KeyPress(Hwnd, 49)
Delay 1000
//下面这句用于向后台窗口句柄(变量:Hwnd)发送一个键盘(扫描码:50)按键
Plugin Bkgnd.KeyPress(Hwnd, 50)
Delay 1000
//下面这句用于向后台窗口句柄(变量:Hwnd)发送一个键盘(扫描码:51)按键
Plugin Bkgnd.KeyPress(Hwnd, 51)
Goto 标记010
//==================================================================
Delay 1000这句是延时1秒可以按自已需要修改
追问
我刚开始学习去写的。。
Plugin Hwnd = Window.Foreground()
我开头写上这一句 就提示错误了。。说语句无法识别 可能有错误。 你能把我给的前台代码截取一小段改一下我看看参考么?
MoveTo 481, 90
Delay 1000
LeftClick 1
Delay 1000
MoveTo 671, 267
RightDown 1
KeyPress "F1", 1
RightUp 1
Delay 1500
KeyPress "Esc", 2
Delay 1500
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询