|
Post by charlie on Jan 7, 2019 23:23:53 GMT
Hi, I would like to: at the end of the macro have the mouse return to the position it was in when I pressed the start macro button. I've looked around but couldn't work out how to do this. Would this be possible by using conditions and variables? Firstly one at the start of the macro to capture the position of the mouse to a variable then one at then move the mouse to the saved variable? I'm not a programmer so ohgod it's so very beyond me. Is it possible? Can anyone help?
|
|
|
Post by Steve on Jan 7, 2019 23:44:17 GMT
Hi Charlie, 1 | RUN ACTION | DEFINE STRING VARIABLE | %STRING%::%mouse_x% | AND | 2 | RUN ACTION | DEFINE STRING VARIABLE | %STRING1%::%mouse_y% 2 | RUN ACTION | MESSAGE PROMPT | Macro Start::Start::1 3 | RUN ACTION | MESSAGE PROMPT | Macro Middle::Middle::1 4 | RUN ACTION | MESSAGE PROMPT | Macro End::End::1 5 | %string% | %string1% | 100 | Mouse Movement This can be done by declaring the variable STRING and STRING1 with the internal MOUSE_X and MOUSE_Y values respectfully and using the string variables to represent the mouseX and mouseY for a mouse movement.
The example declares STRING and STRING1 to MOUSE_X and MOUSE_Y at line 1. Lines 2, 3, and 4 are our macro body. Line 5 uses STRING and STRING1 as the X and Y for the Mouse Movement.
Hope this helps.
|
|
|
Post by charlie on Jan 8, 2019 0:00:24 GMT
Steve, you are a champion, that works like a charm!! Many thanks for your assistance it is most appreciated.
|
|