But I would rather have AHK execute some piece of code that adds information into a global object. Some way to give a short little description for a label and a suggested default hotkey/hotstring. So, something like this [not valid] code would add the function, description, and suggestion to the global.
Code: Select all
addEntry("Take over the world.", "#p")
pinkyAndBrain() {
....
}
I can picture how I could maybe to do this in Python (it's been a while)... but this isn't Python, and Lexikos has already poo-pooed docstrings viewtopic.php?p=330673#p330673.
EDIT: The idea is that a GUI would be filled with this information. Then functions could be assigned to menus. Hotkeys (and hotstrings) could be assigned/changed by way of HotKey() and Hotstring().
EDIT 2:
Umm... This "works"...
Code: Select all
myfunction.desc := "Hello"
myfunction() {
return 5
}
msgbox myfunction.Name " " myfunction.desc