User Tools

Site Tools


action:Press_a_Button

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
action:Press_a_Button [2023/09/12 04:47]
peternlewis v11
action:Press_a_Button [2023/09/15 04:10] (current)
peternlewis
Line 3: Line 3:
 The //Press a Button// action presses a named button in the front window. The //Press a Button// action presses a named button in the front window.
  
-Note: button ​names may be case sensitiveRemember too that sometimes ​buttons change names, for example //Show sidebar// may become //Hide sidebar// after being pressed.+As well as pressing buttons, you can perform other actions (v11.0+) such as showing the menu for the button, or incrementing or decrementing a slider, or canceling the button. 
 + 
 +(i) Sometimes ​buttons change names, for example //Show sidebar// may become //Hide sidebar// after being pressed
 + 
 +There is a popup menu (v11.0+) to scan the front window of a selected application. Ensure the window of interest is the front window in your target application,​ then select the application in the popup menu. Keyboard Maestro will scan the window. Then select the popup menu and there will be an additional menu of all the buttons in the front window of the target application. Hold the Option key down to sort the buttons (by default they are roughly in the window layout order), and hold the Shift key down to display the details of the button. Buttons can be matched explicitly by Title, or by Description,​ and can have an array index for duplicate buttons with the same name.
  
 The action allows you to specify multiple options separated by a vertical bar (eg This|That) to allow for toggling or varying buttons. They will also ignore the difference between three dots (\.\.\.) and an ellipsis (…) so you do not have to worry which one is used.  The action allows you to specify multiple options separated by a vertical bar (eg This|That) to allow for toggling or varying buttons. They will also ignore the difference between three dots (\.\.\.) and an ellipsis (…) so you do not have to worry which one is used. 
Line 12: Line 16:
  
 As of v10.2 there is an option (in the action (gear) ⚙ menu) to have this action wait until the button exists and is enabled and then press it. As of v10.2 there is an option (in the action (gear) ⚙ menu) to have this action wait until the button exists and is enabled and then press it.
- 
-In v11.0, there is a popup menu to scan the front window of a selected application. Ensure the window of interest is the front window in your target application,​ then select the application in the popup menu. Keyboard Maestro will scan the window. Then select the popup menu and there will be an additional menu of all the buttons in the front window of the target application. Hold the Option key down to sort the buttons (by default they are roughly in the window layout order), and hold the Shift key down to display the details of the button. Buttons can be matched explicitly by Title, or by Description,​ and can have an array index for duplicate buttons with the same name. 
- 
- 
  
 ===== See Also ===== ===== See Also =====
action/Press_a_Button.txt · Last modified: 2023/09/15 04:10 by peternlewis