Reputation: 173
I have a hotkey and hotstring that don't seem to work together:
9::(
:?ob0:(::){left 1}
To give some context, in one part of the code I remapped all the symbols to the number below them and vice versa so 9
prints the parenthesis (
. Later on I put a hotstring that would type a closed parenthesis after an open one and then places the cursor in between.
Seems simple enough because they both work individually but together when I press the key for 9
and press the Spacebar I only get the open parenthesis (
as if the hotstring was ignored.
Am I missing something obvious?
Upvotes: 2
Views: 655
Reputation: 26875
Try using a combination of Send
and InputLevel
.
#InputLevel 1
9::SendEvent (
#InputLevel 0
;; Add closing parenthesis
:?ob0:(::){left 1}
9
hotkey to a higher InputLevel, it is able to the activate other hotstrings.9::(
wouldn't trigger other hotkeys.
#InputLevel, Send, Remapping (Remarks)
Upvotes: 2