For the latter... if you're trying to press a shortcut, then a key and have it type some text, I have a suggestion. You can't use the # symbol or any other that requires a modifier, but this will work for any letter or number key:
Trigger the Typinator Snippet with ⌘⇧M. If your next keypress is found in the Switch/Case group, it will insert its snippet. If not, you can carry on as though you never triggered the macro.
The Typinator Snippet - Watch for Keypress macro simply captures the keypress to a variable to be used by the main macro.
Sorry for the confusion. I'd like ⌘ + ⇧ + M to type #
I am perfectly aware of the possibility of assigning a hot key to a "Insert text by typing" action. Although I'd like to pass through Typinator because I already use a macro which activates Typinator sets only when the target application dialog window activates.
Expand here for development process of that macro.
Hey there Alex, from what I have researched there is no way to assign a Keyboard Maestro style "hotkey" to Typinator rules. I imagine the reason being that Typinator is (as the name implies) an application designed to perform actions while typing.
That being said, you can expand any Typinator expansion via AppleScript which of course can be run from Keyboard Maestro (and Typinator too can run AppleScript but I have dabbled very little with this feature).
Sample AppleScript to be ran from Keyboard Maestro (click to expand/collapse)
tell application "Typinator"
expand string "PLACE THE EXPANSION'S ABBREVIATION HERE"
end tell
For example, I use the following AppleScript run from KM:
My AppleScript to expand a Typinator expansion for Script Debugger (click to expand/collapse)
tell application "Typinator"
expand string "sd:varinstset"
end tell
to trigger this expansion in Typinator:
Screenshot of Typinator expansion (click to expand/collapse)
Click here to see what that Typinator rule actually does if you're interested. (click to expand/collapse)
First, Typinator opens a dialog window asking me for the KM variable and what I would like to designate as the AppleScript variable.
Then it inserts that text into Script Debugger and simulates the ⌘K key to compile the new script.
See the screenshot and script to see the results.
### Requires Keyboard Maestro 8.0.3+ ###
set kmInst to system attribute "KMINSTANCE"
tell application "Keyboard Maestro Engine"
setvariable "local__xPos" instance kmInst to xPos
end tell
So whatever your existing Typinator rule is to insert the hashtag, you can take it's abbreviation as defined in your Typinator set and replace the PLACE THE EXPANSION'S ABBREVIATION HERE bit in my sample AppleScript above, make a new KM macro with just a single action being that AppleScript, assign it whatever hotkey you want and voila, Typinator will insert the hashtag for you.
If that's not quite what you're looking to do, let me know and i'll see if I can help you some more.