User Tools

Site Tools


action:Move_or_Click_Mouse

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
action:Move_or_Click_Mouse [2019/07/08 01:11]
peternlewis [Setup of Found Image]
action:Move_or_Click_Mouse [2019/07/08 01:14]
peternlewis
Line 60: Line 60:
  
 **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. **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.
 +
 ==== Setup and Testing ==== ==== Setup and Testing ====
 The //Go// and //Get// Buttons are used only during setup of the Action. ​ They have no effect when the macro is executed. The //Go// and //Get// Buttons are used only during setup of the Action. ​ They have no effect when the macro is executed.
Line 79: Line 80:
   - buttons that are pressed stay pressed only as long as the macro continues to run.   - 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//.   - use the gear icon at top right of the action to select whether or not to //Restore Mouse Location//.
- 
  
 ==== Setup of Found Image ==== ==== Setup of Found Image ====
- 
  
 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. If the image is not unique and you want to click on one of them, you can either use the [[action:​Find_Image_on_Screen|Find Image on Screen]] action (which has an option to find a non-unique image) or the [[action:​For_Each|For Each]] action with the [[collection:​Found_Images|Found Images]] collection to find all matching images and click on them as appropriate. 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. If the image is not unique and you want to click on one of them, you can either use the [[action:​Find_Image_on_Screen|Find Image on Screen]] action (which has an option to find a non-unique image) or the [[action:​For_Each|For Each]] action with the [[collection:​Found_Images|Found Images]] collection to find all matching images and click on them as appropriate.
  
- +{{page>::​Found_Image#​How To Use&​noheader&nofooter}}
-{{ action:click-found-image-action-example.png?​nolink&503x407 | Click at Found Image Example ​}} +
  
 ===== See Also ===== ===== See Also =====
  
----- +==== Actions ​====
- +
-=== Actions ===+
  
 * [[action:​Bring Application Windows to Front]] * [[action:​Bring Application Windows to Front]]
Line 104: Line 99:
 * [[:​Actions|See all Actions]] * [[:​Actions|See all Actions]]
  
-===  Collections ===+====  Collections ​====
  
 * [[collection:​Found Images|Found Images]] * [[collection:​Found Images|Found Images]]
 * [[:​Collections|See all Collections]] * [[:​Collections|See all Collections]]
  
-===  Conditions ===+====  Conditions ​====
  
 * [[condition:​Found Image|Found Image]] * [[condition:​Found Image|Found Image]]
 * [[:​Conditions|See all Conditions]] * [[:​Conditions|See all Conditions]]
  
-=== Functions ===+==== Functions ​====
  
 * [[function:​MENUBARHEIGHT|MENUBARHEIGHT()]] * [[function:​MENUBARHEIGHT|MENUBARHEIGHT()]]
Line 127: Line 122:
 * [[:​Functions|See all Functions]] * [[:​Functions|See all Functions]]
  
-=== Tokens ===+==== Tokens ​====
  
 * [[token:​CurrentMouse|%CurrentMouse%]] * [[token:​CurrentMouse|%CurrentMouse%]]
Line 139: Line 134:
 * [[token:​WindowSize|%WindowSize%]] * [[token:​WindowSize|%WindowSize%]]
 * [[:​Tokens|See all Tokens]] * [[:​Tokens|See all Tokens]]
- 
----- 
  
 ==== Forum ==== ==== Forum ====
  
 - [[https://​forum.keyboardmaestro.com/​t/​macro-move-window-1-space-left-right-or-to-different-desktop/​3100/​2|MACRO:​ Move Window 1 Space Left/Right or to Different Desktop]] - [[https://​forum.keyboardmaestro.com/​t/​macro-move-window-1-space-left-right-or-to-different-desktop/​3100/​2|MACRO:​ Move Window 1 Space Left/Right or to Different Desktop]]
action/Move_or_Click_Mouse.txt · Last modified: 2023/09/15 02:20 by peternlewis