我刚刚制作了一个脚本,其中包含一些鼠标移动和按键操作。我正在尝试绑定 F6 按钮而不是鼠标按钮 5。如何在此脚本中绑定 F6 按钮?也就是说,它就像“如果按下“F6”那么......
function OnEvent(event, arg)
if event == "MOUSE_BUTTON_PRESSED" and arg == 5 then
MoveMouseTo(60000, 11000)
PressAndReleaseMouseButton(1)
Sleep(20)
PressAndReleaseKey("y")
end
end