AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

PSPad def file "fix"

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Freighter



Joined: 07 Sep 2006
Posts: 64

PostPosted: Sun Dec 02, 2007 2:21 am    Post subject: PSPad def file "fix" Reply with quote

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
View user's profile Send private message
engunneer



Joined: 30 Aug 2005
Posts: 6772
Location: Pacific Northwest, US

PostPosted: Tue Dec 04, 2007 12:15 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group