很简单
key =WaitKey()
If key =13 Then //这里13是回车的键代码
MoveTo 100, 100//模拟鼠标移动到100,,10的位置
Delay 500
LeftClick 1//鼠标左键单击一次
End If
如果需要一直使用,加入一个DO loop循环即可。
专业作者回答,请采纳
Key = WaitKey()
If Key = 13 Then
TracePrint "你按下了回车键,鼠标将在 100,100坐标点击"
MoveTo 100, 100
LeftClick 1
End If
//制作:法科按键
//时间:2017-10-08
没明白这是什么意思
要求是不是就是点击屏幕某处?
电脑or手机?
https://www.baidu.com/s?wd=%E3%80%90%E9%AA%8C%E8%AF%81%E7%A0%81%E6%8F%92%E4%BB%B6%E6%95%99%E7%A8%8B%E3%80%91%E7%88%B1%E4%B9%90%E8%B5%9E%E6%8F%92%E4%BB%B6%E3%80%81%E7%8E%89%E7%B1%B3%E6%8F%92%E4%BB%B6%E3%80%81%E7%A5%9E%E8%AF%9D%E6%8F%92%E4%BB%B6%E3%80%81E%E4%BA%91%E6%8F%92%E4%BB%B6%E7%9F%AD%E4%BF%A1%E9%AA%8C%E8%AF%81%E7%A0%81%E6%8E%A5%E5%8F%A3%E5%B9%B3%E5%8F%B0&rsv_spt=1&rsv_iqid=0xd42aad110003050e&issp=1&f=8&rsv_bp=0&rsv_idx=2&ie=utf-8&tn=baiduhome_pg&rsv_enter=0&rsv_sug3=3&rsv_n=2&inputT=6333&rsv_sug4=6465
32769
32773
x=waitclick
if x=32769 then
//左键按下
do....
else if x=32773 then
//右键按下
do....
else
end if
click = WaitClick
TracePrint "用户按下的键是:" & click
If click = 32769 Then
MoveTo x, y
Delay 100
LeftClick 1
Delay 100
ElseIf click = 32773 Then
MoveTo x1, y1
Delay 100
LeftClick 1
Delay 100
End If