AutoHotkey Community

It is currently May 25th, 2012, 10:11 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: PSPad def file "fix"
PostPosted: December 2nd, 2007, 2:21 am 
Offline

Joined: September 7th, 2006, 10:42 am
Posts: 65
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 4th, 2007, 12:15 am 
Offline
User avatar

Joined: August 30th, 2005, 8:43 pm
Posts: 8666
Location: Salem, MA
i just checked mine, and it is working properly without your change. I checked my def file, and it was fine too.

_________________
Image
(Common Answers) - New Tutorials Forum - Humongous FAQ


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: jyloup, lblb, ownmart, Pasukun, rbrtryn, tomL, Xx7, Yahoo [Bot] and 60 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group