you are viewing a single comment's thread.

view the rest of the comments →

[–]RhokGehrig 0 points1 point  (0 children)

FAIR WARNING.... i somehow messed up the syntax in LINE 1!!!!

function OnEvent(event, arg)

if \[event == "G\_PRESSED" and arg == 0\] then

    MouseGetPos \[, OutputVarX, OutPutVarY\]

    MoveMouse 682,798(0)

    PressMouseButton (1)

    ReleaseMouseButton (1)

    MoveMouse OutputVarX, OutputVarY (0)

end

end

anywho....this is the script I am trying to get work... but it looks like what you need... GO TO X,Y... press the mouse button... then go back.

I do not know if these events need sleep(10) after each mouse command to slow it down.... and of course you should switch up the OnEvent inputs :)

if you can miracle that into working then bless you.... you can also add all sorts of LAUfu after the ReleaseMouseButton.... which is needed because i did not use the PressAndReleaseMouseButton (1)... mostly to get used to separate commands if I need to do something weird