Is it possible to call a Keystroke Maestro macro from within a Greasemonkey scrip in Firefox? How would I do it?
You can use the option to trigger by url. See image below.
I imagine it is possible to have a Greasemonkey script trigger an url.
Jimmy, many thanks for responding. What does remote access is disabled mean?
Also can the greasemonkey JavaScript call a km macro on a particular web page
If you only need to trigger the macro locally you do not need to worry about the remote access.
How you trigger an url in Greasemonkey JavaScript I do not know.
Hi Jimmy, Thanks again for the response. To make my requirement clear, once we get to a particular webpage, say web page x, Javascript will need to call the KM macro without navigating away from web page x, it needs to execute the keystrokes on web page x. Is this possible?
Hello Jimmy, does triggering a URL mean moving away from the web page on which the macro needs to run?
I have not worked with triggering macros through the kmtrigger:// protocol, so I do not know.
I do also not know how to make a GreaseMonkey script.
If you search the forum, there is other who have asked to trigger a macro when certain webpages are active:
But Keyboard Maestro does not support it.
It is not possible to just trigger it with at hotkey?
Else you need to find someone with GreaseMonkey skills.
And if the kmtrigger:// opens a new window, then just start the macro with closing the first window.