Closed ascedmor closed 5 years ago
Ive been thinking about this a bit and decided the best way to do this is use "<>" to encapsulate screen coordinates to move the mouse to as a special key. i.e moveMouse:{<5,5>} would move the mouse to coordinates x=5 y=5.
It should also be made possible to use a "+" to indicate relative positioning i.e moveMouse:{<+5,+5>} would move the mouse 5 pixels along the x and y axis from its current position.
To align with the new flowing syntax for special keys it should also be possible to encapsulate multiple mouse coords in a single set of <>. i.e
moveMouse:{<0,0|5,5|10,10>}
It would also be beneficial to be able to perform special key presses and wait times without closing the encapsulation. i.e
clickDrag:{<0,0(LButton down)5,5(LButton up #100#)10,10(Alt|LButton)>}
move to 0,0 and hold left mouse button|move to 5,5 and release left mouse button and wait 100 units|move to 10,10 and press alt and click left mouse button.
Basic implementation is done, working on relative motions now
Done, closing issue
Would it be worth adding a method to call the Click function with parameters? This would allow macros to include precisely positioned clicking