User Submitted Macro

Move The Mouse

Written by Ian Stuart

What it does

Smoothly moves the mouse from the current position to a target position.


This is an improved version of the Schmoooove macro submitted by Ian Steele. The Schmoooove macro was written for Macro Express 3. This version is simpler because it uses new features found in Macro Express Pro.

Note from Insight Software Solutions: Some applications, notably, some versions of MS Word, require that the mouse be moved ‘smoothly’ to activate certain features. In the case of MS Word, if the mouse is not moved smoothly, the menus do not drop down. This macro is useful for these types of applications.

To install

Download the macro file ummovethemouse.mex and save it to your hard drive. Import the macros into your existing macro file by clicking File, Import, Import Macros.

To use

In your macro, create an Integer variable called MoveTheMouse with 2 or 3 elements. Set MoveTheMouse[1] to the target X location and MoveTheMouse[2] to the target Y location. You can optionally set MoveTheMouse[3] to a speed between 0 and 50 (the lower number the faster the speed), if no speed is set it will default to 10. After you have set the variable, insert a ‘Macro Run: MoveTheMouse’ command.


– Macro Express Pro