Dear KM specialists,
after more or less struggling with this issue over years now I searched the forums but didn't find something similar. So today is the day to ask…
I like to use "press a button" in different applications. My very first problem is mostly if an "obvious" button behaves as a button or is recognizeable by KM as a button. I don't know how developers program their apps but there must be obviously a hundred ways to provide something which looks like a "button" for the end user but is a link, … whatever they call the other 99 ways.
My workaround to first get the needed information is to create an "if/then…" routine and check with "a button with this name…" if KM says "currently true" when the app is active. This works often but needs quiet some time to switch between the apps and check different spellings, whatever.
In some cases I can work with "A button: with name containing" - but the command "press a button" only uses "button named" so it needs the exact name, correct?
I have a specific button in Apple Numbers which looks like this:
KM recognises (name containing):
• Bedingte
• Markierung
• Bedingte Markierung
but NOT
• Bedingte Markierung...
• Bedingte Markierung ...
Since I work on different Macs with also different language settings I like to use the synced macros on all macs using "if the button [GERMAN]" press it, else press the [ENGLISH] version. If I can get the exact buttons name this works pretty good.
Any help or hint is much appreciated. Thanks in advance.
EDIT: I found the following hints via the help routine:
"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.
Alternatively, you can start the name with an ^ and use a regular expression to match the button name.
As of 7.1+, you can use Text Tokens in the field."
I found the solution using "^" before the buttons name. I tried to delete my question but wasn't allowed to.
Sorry and thanks so much.
Cheers,
HaPe