 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Freighter
Joined: 07 Sep 2006 Posts: 64
|
Posted: Sun Dec 02, 2007 2:21 am Post subject: PSPad def file "fix" |
|
|
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 |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 6772 Location: Pacific Northwest, US
|
Posted: Tue Dec 04, 2007 12:15 am Post subject: |
|
|
i just checked mine, and it is working properly without your change. I checked my def file, and it was fine too. _________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|