Code: Select all
#If GetKeyState("Scrolllock","T")
::ahk::
Run, "C:\Users\Username\AutoHotkey"
Return
Now what I would like to do is to prevent these hotstrings from actually editing text in a text editor, like Word or Trello. Like, if I'm in the middle of writing a document, I don't want to have to move the window out of focus just to type the hotstring without inserting "ahk " on the document itself, as that would defeat my purpose of being able to open the window I want imediately.
So, is there a way to achieve what I want? Maybe a way to make Scroll Lock disable actual text input while it's toggled, but allow hotstrings somehow?