| View previous topic :: View next topic |
| Author |
Message |
easye
Joined: 07 Dec 2006 Posts: 6 Location: U.S.A.
|
Posted: Thu Dec 14, 2006 4:47 pm Post subject: |
|
|
| 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:
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. |
|
| Back to top |
|
 |
toralf
Joined: 31 Jan 2005 Posts: 3842 Location: Bremen, Germany
|
Posted: Thu Dec 14, 2006 6:07 pm Post subject: |
|
|
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  |
|
| Back to top |
|
 |
easye
Joined: 07 Dec 2006 Posts: 6 Location: U.S.A.
|
Posted: Thu Dec 14, 2006 7:18 pm Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
toralf
Joined: 31 Jan 2005 Posts: 3842 Location: Bremen, Germany
|
Posted: Thu Dec 14, 2006 9:09 pm Post subject: |
|
|
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  |
|
| Back to top |
|
 |
easye
Joined: 07 Dec 2006 Posts: 6 Location: U.S.A.
|
Posted: Thu Dec 14, 2006 11:31 pm Post subject: |
|
|
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. |
|
| Back to top |
|
 |
toralf
Joined: 31 Jan 2005 Posts: 3842 Location: Bremen, Germany
|
Posted: Fri Dec 15, 2006 7:00 am Post subject: |
|
|
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  |
|
| Back to top |
|
 |
easye
Joined: 07 Dec 2006 Posts: 6 Location: U.S.A.
|
Posted: Fri Dec 15, 2006 6:28 pm Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
SanskritFritz
Joined: 17 Feb 2005 Posts: 283 Location: Hungary, Budapest
|
Posted: Thu Jan 25, 2007 9:11 am Post subject: |
|
|
| 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? |
|
| Back to top |
|
 |
SamuelPlentz
Joined: 26 Jul 2006 Posts: 8
|
Posted: Mon Feb 05, 2007 11:38 am Post subject: |
|
|
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  _________________ www.SamuelPlentz.de.vu |
|
| Back to top |
|
 |
nduncan
Joined: 06 Dec 2005 Posts: 32 Location: Madrid, Spain
|
Posted: Thu Feb 08, 2007 11:54 pm Post subject: |
|
|
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. _________________ tryingharder |
|
| Back to top |
|
 |
toralf
Joined: 31 Jan 2005 Posts: 3842 Location: Bremen, Germany
|
Posted: Fri Feb 09, 2007 7:39 am Post subject: |
|
|
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  |
|
| Back to top |
|
 |
nduncan
Joined: 06 Dec 2005 Posts: 32 Location: Madrid, Spain
|
Posted: Fri Feb 09, 2007 12:45 pm Post subject: |
|
|
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? |
|
| Back to top |
|
 |
toralf
Joined: 31 Jan 2005 Posts: 3842 Location: Bremen, Germany
|
Posted: Fri Feb 09, 2007 8:49 pm Post subject: |
|
|
Sorry, I do not understand what you mean by "toolbar file". _________________ Ciao
toralf  |
|
| Back to top |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5067 Location: imaginationland
|
Posted: Sun Feb 11, 2007 5:31 pm Post subject: |
|
|
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:
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. _________________
RegExReplace("irc.freenode.net/ahk", "^(?=(.(?=[\0-r\[]*((?<=\.).))))(?:[c-\x73]{2,8}(\S))+((2)|\b[^\2-]){2}\D++$", "$u3$1$3$4$2") |
|
| Back to top |
|
 |
Homer
Joined: 12 Jan 2006 Posts: 62 Location: Dallas, Texas
|
Posted: Sat Feb 17, 2007 4:12 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
|