Now TextPad has the added ability to click any command in the script being edited, and press 'Ctrl+2' to launch help directly on that command.
download:
http://www.autohotkey.com/download/extr ... extPad.zip
for AHK users not using TextPad, the following script will add that ability to ANY editor, even notepad. this script makes use of the index that is newly added to AHK's help. make sure u've the latest download.
(change path to help file in script)
Code:
SetTitleMatchMode, 2
setkeydelay, 0
$^2::
IfWinNotActive, .ahk ;check if the script has .ahk extension.
{
send, ^2
return
}
Send, {home}^+{right}^c
StringReplace, cmd, clipboard, %a_space%,, A
StringReplace, cmd, cmd, %a_tab%,, A
StringReplace, cmd, cmd, `,,, A
ifwinnotexist,AutoHotkey Help,,run, E:\Program Files\AutoHotkey\AutoHotkey.chm
winactivate, AutoHotkey Help
winwaitactive, AutoHotkey Help
send, !n
ControlSend, Edit1, +{home}{bs}%cmd%{enter}, AutoHotkey Help
return