Written by Ian Steele
This macro will smoothly move the mouse to a new position on the screen.
I’m using Macro Express to run our test suite. One thing I noticed that I did not like was the way the mouse jumps from one point to another. This behaviour makes it difficult for an operator to see what’s happening. To this end I wrote a macro that moves the mouse pointer slowly (or fast!) from its current position to a new location. The macro is called Schmoooove – as in “smooth move” :-). Schmoooove uses a macro named ‘Square root’ that approximates the square root. It returns an integer value that is less than or equal to the actual square root.
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.
Download the macro file umschmooove.mex and save it to your hard drive. Import the macros into your existing macro file by clicking File, Import, Macros.
In your macro, set variable N22 and N23 to the new mouse X,Y coordinates and insert the macro command ‘Macro Run: Schmoooove (screen)’.
– Macro Express 3
** Ian wins a Macro Express T-shirt for his submission.
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |