User Tools

Site Tools


action:Move_or_Click_Mouse

**This is an old revision of the document!**

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.

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:

  • Just Move.
  • Click.
  • Double Click.
  • Triple click.
  • Release.

Select from the pop-up a mouse button to click or release.

Select zero or more modifier keys by clicking the relevant icon:

  • Control — ⌃.
  • Option — ⌥.
  • Shift — ⇧.
  • Command — ⌘.

When a modifier key is clicked the icon is filled with blue.

If relevant, specify coordinates by entering a number or using the stepper arrows.

** Coordinates are in pixels.

Clicking or moving may be relative to a:

  • mouse location.
  • absolute position.
  • front window's corner (top left, top right, bottom left, bottom right).
  • front window's center.
  • screen's corner (top left, top right, bottom left, bottom right).
  • screen's center.
  • found image's corner (top left, top right, bottom left, bottom right).
  • found image's center.

Note: the Go button moves the mouse to the specified location. The Get button counts down from 5 so you have time to move the mouse pointer then gets the pointer’s coordinates.

You can also click relative to a 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.

Specify from the pop-up whether the click operation is:

  • without dragging.
  • and drag to.
  • and drag absolute.
  • and drag relative.
  • and hold.

Note: buttons that are pressed stay pressed only as long as the macro continues to run.

Note: use the gear icon at top right of the action to select whether or not to Restore Mouse Location.

See Also


Actions

Collections

Conditions

Functions

Tokens

Forum

action/Move_or_Click_Mouse.1457502027.txt.gz · Last modified: 2016/03/09 00:40 by ccstone