Squish tip of the week: How to modify the mouse click duration

Squish tip of the week: How to modify the mouse click duration

Did you know you can control the duration of a mouse click? Or create drag-and-drop mouse events?

Perhaps you have a pop-up menu, a menu which requires a longer click, or need to click and drag an object from one area to another.

Using a combination of mouse Interaction Functions, mousePress, mouseMove and mouseRelease can be individually scripted in place of the more common mouseClick function.

Creating a slow mouseClick event

If your script recorded:
mouseClick(waitForObject(":ObjectSymbolicName"))

Then modify the script to:
mousePress(waitForObject(":ObjectSymbolicName"))
snooze(2)
mouseRelease(waitForObject(":ObjectSymbolicName"))

Read the following KB article to learn how to script the mouse to drag-and-drop: Using mousePress(), mouseMove(), mouseRelease()