Despite the reference entry on winget, wild-card silently crashes winget when used on macro or menu, but not on window.
Code Snippet (if applicable) to Reproduce Problem:
mob
verb
TestGetMacro()
src << "Result: <b>[winget(src, "macro.*", "is-disabled")]</b>" // silently crashes
Expected Results:
Returning a text-string with a list of macros
Actual Results:
Silently crashing
Does the problem occur:
Every time? Or how often? Every time
In other user accounts? N/A
On other computers? N/A
When does the problem NOT occur?/Workarounds:
There is no problem when the macro/menu is specified by name, or when you winget on a window through wild-card.
mob
verb
TestGetWindow()
src << "Result: <b>[winget(src, "default.*", "is-disabled")]</b>" // works with a window called default
TestGetMacro()
src << "Result: <b>[winget(src, "macro.*", "is-disabled")]</b>" // silently crashes
TestGetSpecificMacro()
src << "Result: <b>[winget(src, "macro.Ctrl+E", "is-disabled")]</b>" // works with a Ctrl+E macro in a set named macro