Heavily inspired by TheBestPessimist's AutoHotKey-Launcher and PowerToys Run; this is my version of a quick launcher, compatible with AHK v2.
Re-map CapsLock
to open a GUI with a single textbox that runs shortcuts mapped to text that you type in. A semantic way of activating shortcuts, opening files or folders, or searching the net (who has the time to remember a millionCTRL+WIN+XYZs
? I'd rather spend that time coding!).
You have the power to create shortcuts as desired, for example: set pai
to MS Paint, scr
to run an arbitrary script, or con
to press WIN+K
'cause you can't remember the key-press.
Unfortunately I don't have the time to well-document this. I think the code is somewhat approachable, though.
If you want to re-map double pressing of CapsLock
, it should be self-explanatory, for example.
All I ask in return for your use of this script is that you share any ideas that you have (or have already implemented) š.
LNCHR-Main.ahk
CapsLock
to activate.Enter
)query
mode, where you can enter additional text (pressing Enter
is then required to submit). For example, to search Google or Spotify, first type gā£
, followed by the search words of your choice with an Enter
.CapsLock
to activate a function of your choice (I prefer to map this to a key-press that opens PowerToys Run)Escape
to exit from any state and close the GUI(Ctrl|Shift|Alt)+CapsLock
to toggle Caps Lock insteadTab
or Win
for other shortcuts (eg. I map Win
to open iPython terminal)main
, where commands are typed without pressing Enter
. The other is query
, where the submitted text is pushed a pre-defined function of your choosingLNCHR-Memory.ini
, and can be browsed through the up and down arrow keys, or is auto-completedclr
LNCHR-CommandsGeneator.xlsm
: a Microsoft Excel macro-enabled spreadsheet that is used to generate the LNCHR-Commands.ahk
file an a HELP-Commands.txt
file for quick-help and tooltip suggestions. If you will not be using this tool, I recommend setting
lngui_props.show_commands_tips := False
in LNCHR-Main.ahk
(line 34). See the Help tab on the Excel file for guidance.Open my documents with doc
Open MS Paint with pai
Enable calculator mode with cā£
. Or press ā
or ā
to navigate through calculator history.
Hot tip: you can perform array math: [1,2,3]^2
. You can store expressions like phi = 1.618
and functions like E(m) = m*(3e8)^2
Type ?
and hit enter to open and edit your saved expressions, and mem
to view the memory.
Search Outlook with oā£
. Put an !
in the query as a shortcut to hasattachments:yes
. Notice the hints and auto-complete.
Compose an e-mail with com
Manage your commands with the provided Excel file. Mapped to a xl
. Open this file, enable macros, and hit ctrl+l
here
to generate LNCHR-Commands.ahk
There are different types of commands which make templating the code much easier.
See the Help tab for more details.