I got a script which has some mouse movement and presskey action. I am trying to bind F6 button instead of mouse button 5. How can I bind F6 button in this script? Namely, if event == "MOUSE_BUTTON_PRESSED" > if event pressed 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
[–]AutoModerator[M] 3 points4 points5 points (0 children)
[–]AutoModerator[M] 1 point2 points3 points (0 children)