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.
Depends on your mouse.
Select zero or more modifier keys by clicking the relevant icon:
When a modifier key is clicked the icon is filled with blue.
To get the relative distance (offset) of the Mouse position relative to some location, like the window top, left corner, use the Get button after you have set the relative to location.
The Go and Get Buttons are used only during setup of the Action. They have no effect when the macro is executed.
Specify from the pop-up whether the click operation is:
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. If the image is not unique and you want to click on one of them, you can either use the Find Image on Screen action (which has an option to find a non-unique image) or the For Each action with the Found Images collection to find all matching images and click on them as appropriate.
Example: Click the Center of an Image Found in an Area Relative to Front Window