How to control and manage many many hotkeys and commands

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Stamimail
Posts: 77
Joined: 06 Nov 2014, 08:48

How to control and manage many many hotkeys and commands

05 Jun 2018, 09:07

You can create many many hotkeys/hotstrings and many many commands, till you find yourself not remembering what hotkey you assigned to do something
or can forget what the available commands you've created, and when exactly you can use it.

What do you do to remember the list of hotkeys/hotstrings and list of commands - to have them when you need them?

Is this discussed before? Any ideas?

Spoiler
Last edited by Stamimail on 06 Jun 2018, 05:08, edited 1 time in total.
User avatar
jeeswg
Posts: 6902
Joined: 19 Dec 2016, 01:58
Location: UK

Re: How to control and manage many many hotkeys and commands

05 Jun 2018, 11:04

- I put a comment after each hotkey label. You can get the text of all lines that contain :: to view the hotkeys. For each comment I tend to put an indication of where the hotkey is used e.g. 'anywhere', 'Notepad'.
- An alternative solution is to give each hotkey a named subroutine instead of a hotkey, and define hotkeys using the Hotkey command, a subroutine for each hotkey, at the start of the script.
- On the AutoHotkey main window, there is 'Hotkeys and their methods', to get a raw list of hotkeys, unfortunately, it doesn't inform you when there are multiple hotkey labels that use the same hotkey, or what the #If criteria is for each one.
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: How to control and manage many many hotkeys and commands

05 Jun 2018, 17:29

Is this a question pertaining to AutoHotkey or organization in general? You learn to manage many many shortcuts by using many many shortcuts. There's no other way around it. Although looking at your list, I think it might prove useful to consolidate some actions like insert char for example to use a dead key input sequence. This is off course a trade-off between speed and mental load, whether it's worth it is up to you to decide.
Stamimail
Posts: 77
Joined: 06 Nov 2014, 08:48

Re: How to control and manage many many hotkeys and commands

06 Jun 2018, 05:06

Is this a question pertaining to AutoHotkey or organization in general?
Both, but I guess that with the power of AutoHotkey you can organize things in a way that you couldn't without it.
You learn to manage many many shortcuts by using many many shortcuts. There's no other way around it.
That's exactly what's the topic about, to change this. Be more creative.
Although looking at your list
It's not mine. It's just an image I found on the Internet to illustrate.
Stamimail
Posts: 77
Joined: 06 Nov 2014, 08:48

Re: How to control and manage many many hotkeys and commands

07 Jun 2018, 06:43

1. "Tell me what you want to do" feature of MS Word
2. Omni Search of AHK Studio also gives great ideas.

side note:
It will be better to be able to search commands by a Hotkey string too, like:
@F1
will give:
Command Help | Menu | F1


:cry: Unfortunately, it seems it will take some time for beginners to learn how to implement such of things.
Radik

Re: How to control and manage many many hotkeys and commands

07 Jun 2018, 09:01

maybe:
Depending on a program... Use multiple scrips and switches between them;
1) delete all the original modifiers from shortcuts in order to memorize em faster. and simplify by letters p=paste q or x = quit, etc...
for example
x::!x ; quit
f::^f :find
p::^c ; paste
Then return modifiers after u get used to it or change them them way is more comfortable. Or keep it simple?
Lu3d
Posts: 7
Joined: 09 Oct 2016, 14:45
Contact:

Re: How to control and manage many many hotkeys and commands

20 Jun 2018, 23:41

Stamimail,

I hear you on keeping track of hotkeys. I was running a bi-weekly streaming session with multiple instructors, cameras, assignments, media, etc. and found a friend in AutoHotkey to help manage everything.
However, my hotkey list was approaching 60 before I was done. I couldn't keep track of them, so I scripted a tool for keeping track of them.

It ended up being a life-saver for me, especially when I left for a few weeks and came back with a blank mind.

Try it out if you like:
https://github.com/luddd/AHK_Hotkey_HelpText

It is implemented like this:

Code: Select all

; Hotkey script
MsgBox This is the main thread
Gosub, HelpText

!#^+t:: ;;Show test;;
MsgBox test
return

!#^+h:: ;;Show hi;;
MsgBox hi
return

#Include HelpTextFunctions.ahk ; make sure its in the same directory or lib
You can also run it solo and include multiple scripts.

Is this the kind of thing you are looking for?

Luddd
User avatar
FanaticGuru
Posts: 1906
Joined: 30 Sep 2013, 22:25

Re: How to control and manage many many hotkeys and commands

21 Jun 2018, 13:54

The script "Hotkey Help" below will provide a list of all hotkeys.
https://autohotkey.com/boards/viewtopic.php?t=96

If you put a nice ; comment on the line of each hotkey definition in your scripts, it will create a nice dialog with additional functionality.

Even without the nice comments, it will create a list of hotkeys in each script running.

It also does hotstrings.

It is an independent script that does not have to be included in other scripts. It detects other running scripts and extracts the information without any modification or addition to the other scripts.

FG
Hotkey Help - Help Dialog for Currently Running AHK Scripts
AHK Startup - Consolidate Multiply AHK Scripts with one Tray Icon
Hotstring Manager - Create and Manage Hotstrings
[Class] WinHook - Create Window Shell Hooks and Window Event Hooks

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: fiendhunter and 243 guests