Page 1 of 1

Record mouse movements

Posted: Mon Feb 24, 2014 7:50 am
by BlubBlab
Okay what I want to do is write a script for Neverwinter which log in to my AC's and "pray" <- CTRL + I
First I thought I can use Autohotkey because it has a recorder with that it is very easy to accomplish such a thing but..

I want to make it more moduley, so I can change the amount of chars and the login data for that Autohotkey isn't good.
Is their a way to record my mouse movements in MM? I can't thing of any simple solution.
(Don't get me wrong I have only 2 AC and If you use countless AC's your ass get beaconed)

Re: Record mouse movements

Posted: Mon Feb 24, 2014 8:14 am
by lisa
Take a lesson from rom/createpath and the option to record where the mouse is on screen.

Code: Select all

local x, y = mouseGetPos();
local wx, wy, hf_wide, hf_high = windowRect(getWin());
the x,y is the mouse location on screen, top left is 0,0

examples.

Code: Select all

Command> print(mouseGetPos())
279     125
Command> print(mouseGetPos())
327     381
Command> print(mouseGetPos())
112     434
Command> print(mouseGetPos())
0       720
Command> print(mouseGetPos())
0       0
Command> print(mouseGetPos())
1365    767
So you could set MM to just print the values when you do a keypress, that would probably be easiest.

Also my Plantcare userfunction has quite a bit of mouse usage stuff in it, movements and clicking.