Page 1 of 1

Macro to shake the mouse for 2sec

Posted: Sat Jul 11, 2015 10:05 am
by Xcessity
Hi,

I got a request from a user that I want to answer in the forums:
Can you advise a macro to shake the mouse? Left and right? for 2 seconds?
Here is a macro that does just that:

Code: Select all

<MACRO id="ShakeMouse">
  <START>
    <MOUSEMOVEINPUT x="-50" y="0" behaviour="RELATIVE"/>
  </START>
  <MAIN repeat="5">
    <MOUSEMOVEINPUT x="100" y="0" behaviour="RELATIVE"/>
    <WAIT time="200"/>
    <MOUSEMOVEINPUT x="-100" y="0" behaviour="RELATIVE"/>
    <WAIT time="200"/>
  </MAIN>
  <END>
    <MOUSEMOVEINPUT x="50" y="0" behaviour="RELATIVE"/>
  </END>
</MACRO>

I am not quite sure if that solves your problem as I don't know what problem you are trying to solve.
Best,

Markus