I was looking threw autohotkeys def file for PSPad to see why there was weird blanks where there should have been variables when you auto complete (ctrl-space)
Example:
Type in loop (then ctrl-space choose "loop (files & folders)")
came out with
Code:
Loop, C:\My Folder\*.txt [, IncludeFolders?, Recurse?]
{
MsgBox Current file or folder name (with full path) is:
MsgBox Same as above but built from two components: \
}
when it should have been
Code:
Loop, C:\My Folder\*.txt [, IncludeFolders?, Recurse?]
{
MsgBox Current file or folder name (with full path) is: %A_LoopFileFullPath%
MsgBox Same as above but built from two components: %A_LoopFileDir%\%A_LoopFileName%
}
I found a way to "workaround" the issue by adding a § (alt + 0167 on the numpad) right after the first % sign in the autohotkey.def file to make autocomplete show right
Code:
[Loop (files & folders) |R Retrieves files or folders, one at a time]
Loop, C:\My Folder\*.txt [, IncludeFolders?, Recurse?]
{
MsgBox Current file or folder name (with full path) is: %§A_LoopFileFullPath%
MsgBox Same as above but built from two components: %§A_LoopFileDir%\%§A_LoopFileName%
}
The § sign is only used for PSPads autocomplete shortcuts (for using the selected text inside the shortcuts result) which the ahk def file doesnt seem to have any(I may be wrong) so it looks to be safe to use.
I don't know what older version(s) it will work on since I tested this on the latest PSPad (ver 4.5.3 "2298")
I hope this will be useful to whoever edits the PSPads ahk def file