Macro to shake the mouse for 2sec

Post Reply
User avatar
Xcessity
Site Admin
Posts: 286
Joined: Sat May 16, 2015 2:23 pm
Location: Graz
Contact:

Macro to shake the mouse for 2sec

Post 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
Post Reply