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 

How to "Edit this Script" in any editor other than

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



Joined: 17 Nov 2006
Posts: 7

PostPosted: Mon Dec 03, 2007 2:54 pm    Post subject: How to "Edit this Script" in any editor other than Reply with quote

Whenever I right click on Autohotkey TRAY icon and click on "edit this script"; I always get the AHk script in notepad.
How do I change these default settings to open the script in Textpad ??
Back to top
View user's profile Send private message
Stefaan
Guest





PostPosted: Mon Dec 03, 2007 3:43 pm    Post subject: Reply with quote

You can change this in your registry.

1. Open the registry editor: Click on run in your start menu and enter regedit and press enter
2. Scroll to the folder HKEY_CLASSES_ROOT\AutoHotkeyScript\Shell\Edit\Command
3. Double click on (Default) in the right pane
4. Change c:\windows\system32\notepad.exe to your preferred editor. I'm using PsPad: "c:\Program Files\PSPad editor\PSPad.exe" "%1" (All quotes included). The "%1%" is important, because windows replaced it by the file name you want to edit.
Back to top
bits



Joined: 17 Nov 2006
Posts: 7

PostPosted: Thu Dec 06, 2007 10:44 am    Post subject: Reply with quote

Stefaan wrote:
You can change this in your registry.

1. Open the registry editor: Click on run in your start menu and enter regedit and press enter
2. Scroll to the folder HKEY_CLASSES_ROOT\AutoHotkeyScript\Shell\Edit\Command
3. Double click on (Default) in the right pane
4. Change c:\windows\system32\notepad.exe to your preferred editor. I'm using PsPad: "c:\Program Files\PSPad editor\PSPad.exe" "%1" (All quotes included). The "%1%" is important, because windows replaced it by the file name you want to edit.



Thanks a Lot !
Back to top
View user's profile Send private message
Lompsy
Guest





PostPosted: Thu Dec 06, 2007 12:19 pm    Post subject: Reply with quote

copy paste into a regfile

I like notepad++ as the best ahk editor since it understands its language (plugin)

Code:

REGEDIT4

[HKEY_CLASSES_ROOT\AutoHotkeyScript\Shell\Edit\Command]
@="C:\\Program Files\\Notepad++\\notepad++.exe %1"

Back to top
pockinator



Joined: 06 Dec 2007
Posts: 33

PostPosted: Thu Mar 20, 2008 3:49 pm    Post subject: Reply with quote

I use notepad++, too. Thanks for this tip!
Back to top
View user's profile Send private message
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