action:Move_or_Click_Mouse
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| action:Move_or_Click_Mouse [2016/03/09 05:40] – ccstone | action:Move_or_Click_Mouse [2023/09/15 06:20] (current) – [Setup of Found Image] peternlewis | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Move or Click Mouse Action ====== | ||
| + | |||
| + | |||
| The Move or Click Mouse action allows you to move, click or move and click the mouse using any mouse button, and optionally dragging. | The Move or Click Mouse action allows you to move, click or move and click the mouse using any mouse button, and optionally dragging. | ||
| You can specify modifiers such as the shift key, as well as the position, relative to any corner of the front window, the main screen, or the current mouse location, or a found image on the screen. | You can specify modifiers such as the shift key, as well as the position, relative to any corner of the front window, the main screen, or the current mouse location, or a found image on the screen. | ||
| + | |||
| + | ===== Examples ===== | ||
| + | |||
| + | |||
| + | Simple Example: Click Mouse at Location Relative to Window | ||
| {{: | {{: | ||
| + | |||
| + | ===== Setup of Action ===== | ||
| As you select options further settings may become available. For example, if you //click// then you can also choose a button to click with and whether or not to also press a modifier key such as Control. | As you select options further settings may become available. For example, if you //click// then you can also choose a button to click with and whether or not to also press a modifier key such as Control. | ||
| - | Select: | + | {{:action: |
| + | |||
| + | ==== Mouse Operation ==== | ||
| *Just Move. | *Just Move. | ||
| *Click. | *Click. | ||
| Line 14: | Line 26: | ||
| *Release. | *Release. | ||
| - | Select from the pop-up a mouse button | + | |
| + | ==== Mouse Button ==== | ||
| + | |||
| + | * left button | ||
| + | * right button | ||
| + | * center button | ||
| + | * button 4 | ||
| + | * button 5 | ||
| + | * button 6 | ||
| + | |||
| + | ==== Modifier Keys ==== | ||
| Select zero or more modifier keys by clicking the relevant icon: | Select zero or more modifier keys by clicking the relevant icon: | ||
| Line 22: | Line 44: | ||
| *Command — ⌘. | *Command — ⌘. | ||
| - | When a modifier key is clicked | + | When a modifier key is included |
| - | If relevant, specify coordinates by entering a number | + | ==== X & Y Locations for Mouse Action ==== |
| + | * Enter Coordinates in pixels | ||
| + | * Location may be absolute | ||
| - | ** Coordinates are in pixels. | + | ==== Location Relative To ==== |
| - | + | ||
| - | Clicking or moving may be relative to a: | + | |
| *mouse location. | *mouse location. | ||
| *absolute position. | *absolute position. | ||
| Line 38: | Line 60: | ||
| *found image' | *found image' | ||
| - | Note: the //Go// button moves the mouse to the specified location. The // | + | **To get the relative distance** (offset) of the Mouse position relative |
| + | ==== Setup and Testing ==== | ||
| + | The //Go// and //Get// Buttons are used only during setup of the Action. | ||
| + | * //Go// button moves the mouse to the specified X & Y location. | ||
| + | * //Get// button sets the X & Y location to current mouse position | ||
| + | * Relative to the location set by the //relative to// popup | ||
| + | * Gives you a countdown from 5 to allow time to move the mouse pointer. | ||
| - | You can also click relative to a [[:Found Image|Found Image]]. The image has to be unique (which includes not being visible in the action if the image is small enough not to be shrunk in the image well) otherwise Keyboard Maestro will not know where to click. | + | ==== Mouse Drag Options ==== |
| Specify from the pop-up whether the click operation is: | Specify from the pop-up whether the click operation is: | ||
| Line 50: | Line 78: | ||
| *and hold. | *and hold. | ||
| - | Note: buttons that are pressed stay pressed only as long as the macro continues to run. | + | Notes: |
| + | - buttons that are pressed stay pressed only as long as the macro continues to run. | ||
| + | - use the gear icon at top right of the action to select whether or not to //Restore Mouse Location//. | ||
| - | Note: use the gear icon at top right of the action to select whether or not to //Restore Mouse Location//. | + | ===== Click at Found Image ===== |
| - | ===== See Also ===== | + | You can also click relative to a [[:Found Image|Found Image]]. |
| - | ---- | + | {{page>:: |
| + | |||
| + | If the click offsets are all fixed values (not calculations), | ||
| + | |||
| + | There is an option in the action (gear) ⚙ menu to have the action wait until the image appears (v11.0+). | ||
| + | ===== See Also ===== | ||
| - | === Actions === | + | ==== Actions |
| + | * [[action: | ||
| * [[action: | * [[action: | ||
| + | * [[action: | ||
| * [[action: | * [[action: | ||
| + | * [[action: | ||
| + | * [[action: | ||
| * [[: | * [[: | ||
| - | === Collections === | + | ==== Collections |
| * [[collection: | * [[collection: | ||
| * [[: | * [[: | ||
| - | === Conditions === | + | ==== Conditions |
| * [[condition: | * [[condition: | ||
| * [[: | * [[: | ||
| - | === Functions === | + | ==== Functions |
| * [[function: | * [[function: | ||
| Line 87: | Line 126: | ||
| * [[: | * [[: | ||
| - | === Tokens === | + | ==== Tokens |
| * [[token: | * [[token: | ||
| + | * [[token: | ||
| + | * [[token: | ||
| + | * [[token: | ||
| + | * [[token: | ||
| + | * [[token: | ||
| + | * [[token: | ||
| + | * [[token: | ||
| + | * [[token: | ||
| * [[: | * [[: | ||
| - | |||
| - | ---- | ||
| ==== Forum ==== | ==== Forum ==== | ||
| - [[https:// | - [[https:// | ||
| - | |||
| - | - [[https:// | ||
action/Move_or_Click_Mouse.1457502027.txt.gz · Last modified: by ccstone
