Mouse Commands

Command

Description

MouseDoubleClick

The MouseDoubleClick command executes a double-click with the left mouse button. Before using this command, it’s necessary to move the mouse pointer to the desired location using a command such as Move. This setup step ensures that the cursor is positioned correctly based on the script’s requirements rather than needing to be positioned manually. Once the mouse pointer is in place, the MouseDoubleClick command performs the double-click at the current cursor location.

MouseLeftClick

The `MouseLeftClick` command performs a single left-click at the current location of the mouse cursor, without the need to move the cursor beforehand. This is useful for clicking on a spot that you’ve already positioned the mouse over.

MouseLeftPress

The `MouseLeftPress` command presses down the left mouse button and keeps it in that pressed (down) mode. Important to note: if your script stops running while the button is still pressed, the mouse will remain in that pressed state. To release the button and return it to its normal state, you’ll need to use the `MouseLeftRelease` command.

MouseLeftRelease

The `MouseLeftRelease` command is designed to release the left mouse button after it has been pressed down using the MouseLeftPress command. This action returns the mouse button to its normal, unpressed state. It’s crucial to remember that this command will only work if the mouse button was previously pressed down through the script command MouseLeftPress.

MouseMiddleClick

The `MouseMiddleClick` command executes a click using the middle mouse button. This action is useful for tasks that require middle-button inputs, such as opening links in new browser tabs or activating specific functionalities within applications that recognize middle mouse clicks.

MouseMiddlePress

The `MouseMiddlePress` command presses down the middle mouse button and holds it in that position. In Windows, this action is often interpreted as a double-click with the middle button. It’s important to note that if the script ends while the button is still pressed, the middle mouse button will remain in that pressed state. To release it and return to normal operation, you’ll need to use the command ‘MouseMiddleRelease.

MouseMiddleRelease

The `MouseMiddleRelease` command is designed to release the middle mouse button after it has been pressed down using the `MouseMiddlePress` command. This action returns the mouse button to its normal, unpressed state. It’s crucial to remember that this command will only work if the mouse button was previously pressed down through the script command `MouseMiddlePress`.

MouseRightClick

The `MouseRightClick` command executes a right-click action at the current mouse cursor location. This is useful for accessing context menus or performing right-click functions within applications and on the desktop.

MouseRightPress

The `MouseRightPress` command presses down the right mouse button and keeps it in that pressed (down) state. This is useful for initiating actions that require the right mouse button to be held down, such as opening a context menu in a specific way or performing a drag-and-drop operation with the right mouse button. It’s important to note that if the script ends while the button is still pressed, the right mouse button will remain in that pressed state. To release it and return to normal operation, you’ll need to use the command ‘MouseRightRelease.

MouseRightRelease

The `MouseRightRelease` command releases the right mouse button, returning it to its normal, unpressed state. This command is effective only if the ,MouseRightPress’ command was previously used.

MouseScroll

The `MouseScroll` command allows you to scroll up or down on a page or within an application by specifying an integer value between -100 and 100. Negative numbers will scroll down, while positive numbers scroll up. It’s important to note that this command may not work with all applications, as some might not recognize or respond to scripted scroll commands in the same way. This functionality is useful for navigating through documents, web pages, or any scrollable interface.

MouseTripleClick

The `MouseTripleClick` command performs a triple-click action using the left mouse button. This type of click is often used in text editing applications to select a whole paragraph or a large block of text quickly.