AutoHotkey Community

It is currently May 27th, 2012, 8:00 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 82 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next
Author Message
 Post subject:
PostPosted: December 14th, 2006, 4:47 pm 
Offline

Joined: December 7th, 2006, 4:14 pm
Posts: 6
Location: U.S.A.
toralf wrote:
Hallo eric,

Thanks for the feedback. I do not know why this is happening. I guess you have shortcuts in your keyboard shortcut list that override the shortcuts for Ctrl+> and Shift+Ctrl+>. Could you please check the keyboard settings in PSPad or take a look at the KeyMap.INI? If this is the case I will add a check to the script that will ask users for different shortcuts if the planned ones are already in use.

I am wondering why EnvMult get listed, it is not given an hotkey. I have no idea why this happens. I guess it is due to the "*" in the definition. But then I can't do anything about it.


I looked through the keyboard settings and the KeyMap.ini and can't find any issues.

One thing I did notice though is that you are using < as part of the hotkey. On my keyboard, this character is on the same key as , (comma). So, in essence, to do the shortcut Ctrl+<, I actually have to push Ctrl+Shift+,

Thinking this might be the problem, I edited the \PSPad\Context\Autohotkey.DEF file and changed it as follows:
Code:
[Retrieve  |G Retrieve contents of this variable]*Ctrl+,
%§|%
[Quote  |G Quote contents of this variable]*Shift+Ctrl+,
"§|"


This ended up working:

Image

So, I'm wondering if this issue has to do with the shortcut specified actually being on the "shift" part of the key. Or is it possible that we may have different keyboards? I have a Microsoft Natural Keyboard which has a standard layout. Also I tried your script using a standard laptop keyboard and I have the same issue with this shortcut.

I'm reaching here, but may it have something to do with regional or language options?

Let me know if I can provide you with any additional information.

Thanks.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 14th, 2006, 6:07 pm 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
I guess you are right. It might have to do with regional settings.
My "<" is left of your "z" if you have a "qwerty" keyboard. I have a "qwertz" (german) keyboard.
I could set the shortcuts depending on system language. Which shortcuts would you like to have on your keyboard? I used mainly shortcuts for the left hand only. (OutputDebug is the only exception)

_________________
Ciao
toralf
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 14th, 2006, 7:18 pm 
Offline

Joined: December 7th, 2006, 4:14 pm
Posts: 6
Location: U.S.A.
toralf wrote:
I guess you are right. It might have to do with regional settings.
My "<" is left of your "z" if you have a "qwerty" keyboard. I have a "qwertz" (german) keyboard.
I could set the shortcuts depending on system language. Which shortcuts would you like to have on your keyboard? I used mainly shortcuts for the left hand only. (OutputDebug is the only exception)


OK. That definately seems like it is the problem. I looked at a pic of a qwertz keyboard and can see that the < character is not on the "shift" part of the key.

If you want to assign this shortcut for the left hand only, then Q or possibly ` are the only choices that I can see. All the other keys on the left side of the keyboard are used for other shortcuts in PSPad. This assumes that you would also want to use Ctrl and Shift. If you want to use the Win key, then there are other possibilities. But then the Win key is probably not present on all keyboards.

But, PLEASE don't rush to make these changes for me. I can edit the DEF file for now to choose whatever I like.

Possibly something to incorporate into future versions of the script is to let the user choose the hotkey combinations in your gui. However, I imagine this would take some work so that you don't cause problems with other shortcuts already built into PSPad.

Thanks again for your great work.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 14th, 2006, 9:09 pm 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
I wouldn't just do it for you. But there are more people out there with a qwerty keyboard then a qwertz. So I have to make a change to the code. Please tell me which shortcuts you find useful after a while of use. Test different short cuts.

_________________
Ciao
toralf
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 14th, 2006, 11:31 pm 
Offline

Joined: December 7th, 2006, 4:14 pm
Posts: 6
Location: U.S.A.
Ok, I'll let you know what I find.

On a different note:
Previously I could highlight a few lines of AHK code and press F9 to run just those lines. Ever since installing this script, when I press F9 it runs the entire script rather than just the section that I have highlighted.

I imagine this is by design since you have a setting in the gui for F9 to run script "with log and parser".

Is there any way to access the original way of doing it?

Thanks.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 15th, 2006, 7:00 am 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
I never came across that feature. Was it a standard feature of PSPad? It is possible to do it with a different program or script. Have you customized PSPad in any way, or run a different script to do it? Maybe it was a PSPad script (although I didn't find any on the PSPad extension page). Since I do not know where this feature came from I do not know how to get it back.

To recreate this feature a hotkey in PSPad would call a different app/script and give the selected code (%SelText%) as a command line parameter (not sure how this will work with multiple lines of code). The app/script would take the code save it to a temporary file and run it with RunWait and delete the file afterwards.

How often have you used this "partial run"?

_________________
Ciao
toralf
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 15th, 2006, 6:28 pm 
Offline

Joined: December 7th, 2006, 4:14 pm
Posts: 6
Location: U.S.A.
toralf wrote:
I never came across that feature. Was it a standard feature of PSPad? It is possible to do it with a different program or script. Have you customized PSPad in any way, or run a different script to do it?


This was the way this worked after installing PSPad and the script that came with AHK for customizing PSPad. The script is called:
\AutoHotkey\Extras\Editors\PSPad\Run this to install syntax and clip files for PSPad.ahk

This is the only customization to PSPad that I had done until I installed your script.

I looked through the script and the files included with it and can't find anything specific to F9 (although I may have missed it).

However, if I look at the KeyMap under the Settings | Program Settings, there is a difference. Here are the sections of interest:

When your script is installed:
PSPad 4.5.2 (2240) - Key Map wrote:
File
aRun3 Shift+F9
aRun4
aRun5
AU3_Spy Alt+F9
Close Ctrl+F4
Close All
Compile F9
Compile with log Ctrl+F9
Exit Ctrl+Alt+F4
Exit with ESC Esc
Export to Clipboard as HTML
Export to Clipboard as RTF
Export to Clipboard as TeX
Export to clipboard as XHTML
Export...
File Info
Move as...
New file... Ctrl+N
Open Active File with New Name... Ctrl+D
Open file appointed by selection
Open File from Internet...
Open in HEX Editor... Shift+Ctrl+O
Open R/O copy of Active File
Open with Program
Open... Ctrl+O
Page Setup...
Print Ctrl+P
Print Preview Alt+P
Printer Settings...
Reopen Active File Ctrl+R
Save Ctrl+S
Save All Shift+Ctrl+S
Save As... F12
Save Block As...
Save to FTP
Save using plugin...
Save Without changing File Date Ctrl+Alt+S
Set as Main File for Compiler


When the other script is installed:
PSPad 4.5.2 (2240) - Key Map wrote:
File
aRun3 Shift+F9
aRun4
aRun5
AU3_Spy Alt+F9
Close Ctrl+F4
Close All
Compile Ctrl+F9
Exit Ctrl+Alt+F4
Exit with ESC Esc
Export to Clipboard as HTML
Export to Clipboard as RTF
Export to Clipboard as TeX
Export to clipboard as XHTML
Export...
File Info
Move as...
New file... Ctrl+N
Open Active File with New Name... Ctrl+D
Open file appointed by selection
Open File from Internet...
Open in HEX Editor... Shift+Ctrl+O
Open R/O copy of Active File
Open with Program
Open... Ctrl+O
Page Setup...
Print Ctrl+P
Print Preview Alt+P
Printer Settings...
Reopen Active File Ctrl+R
Run F9
Save Ctrl+S
Save All Shift+Ctrl+S
Save As... F12
Save Block As...
Save to FTP
Save using plugin...
Save Without changing File Date Ctrl+Alt+S
Set as Main File for Compiler


As you can see F9 does something different in each case.

toralf wrote:
How often have you used this "partial run"?


I actually use it very frequently. I am relatively new to AHK and find that this is a great way to test small portions of code to see that they are performing correctly. Also, it makes it easy to isolate where you might be having problems with a script.


Sorry if I'm just creating more problems for you here. But thought you would like to know about this.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 25th, 2007, 9:11 am 
Offline

Joined: February 17th, 2005, 10:06 am
Posts: 280
Location: Hungary, Budapest
PSPad 4.5.3 (2253) changelog wrote:
Added new File type ftAHK (AutoHotkey) for the Code parser
Whohoo! Works great!!

PS: hmm not flawless, it finds only those labels which start with a normal alphabetic character... so not all my ctrl... hotkeys :-(

_________________
Is there another word for synonym?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 5th, 2007, 11:38 am 
Offline

Joined: July 26th, 2006, 11:25 am
Posts: 19
If i install the script into the beta of PSPad the ability to use the Codeexplorer is lost. I think the script has to be adjusted.

I wrote an correction request concerning the hot keys to the author.

I love this script :D

_________________
http://www.familie-plentz.de


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 8th, 2007, 11:54 pm 
Offline

Joined: December 6th, 2005, 8:27 pm
Posts: 32
Location: Madrid, Spain
Some help needed!

I have PSPad version: 4.5.2 (2241) and AutoHotkey 104608 so I think I am up-to-date.

I have just downloaded Install_AHK_for_PSPad_v2.zip, extracted the files to C\:Temp and made what seemed to be a good default installation from there.

However I can't access the toolbar, because Alt+F9 opens AU Window Spy instead.

It would help if I knew the name of the AHK Toolbar file, as I could make an independent hotkey to access it. However, I have made several unsuccessful searches for it.

It must be something simple.

_________________
oldie


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 9th, 2007, 7:39 am 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
To change the hotkey after installation, you can go to :

Settings > Program Settings > Key Map > File > aRunX

Where the X in aRunX is the number of the external application, specified at:
Settings > Highlighters Setting > AutoHotkey > External Application

_________________
Ciao
toralf
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 9th, 2007, 12:45 pm 
Offline

Joined: December 6th, 2005, 8:27 pm
Posts: 32
Location: Madrid, Spain
Toralf,

Thanks for your quick reply. It is fine as far as it goes, but not being able to find the toolbar file, I can't yet add it as an external application.

What is its name?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 9th, 2007, 8:49 pm 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
Sorry, I do not understand what you mean by "toolbar file".

_________________
Ciao
toralf
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 11th, 2007, 5:31 pm 
Offline
User avatar

Joined: August 11th, 2004, 1:47 am
Posts: 5347
Location: UK
I ran this script to configure my PSPad and I'm happy with the function highlighting and automatic brace/indent completion. However I did have a couple problems: if there is a syntax error AutoHotkey closes and the log shows:

Image

Also none of the non-standard hotkeys like Ctrl+< work, ^<::MsgBox responds normally though. I can't seem to run temporary files either, #SingleInstance off is broken too. Previously I could paste or type in commands to a new file and it would run in the Temp directory, but now I have to save every file.

_________________
GitHubScriptsIronAHK Contact by email not private message.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 17th, 2007, 4:12 am 
Offline

Joined: January 12th, 2006, 7:01 am
Posts: 69
Location: Dallas, Texas
I'm in the same boat as Titan. How do I turn off the Log window from showing up with each compile and turn off the "Save" before compile setting. I see the checkbox for the "Save" before compile setting but as I uncheck it and click OK to exit the dialog window, the setting it checked again when I go back into the window.

Homer


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 82 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Cristi® and 11 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