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 

File Option/Assignment

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
Beastmaster



Joined: 15 Apr 2004
Posts: 182

PostPosted: Fri Jun 18, 2004 8:04 am    Post subject: File Option/Assignment Reply with quote

I've assigned AHK to Notepad2 for editing.
If I use the context menu option --> New\AutoHotkey Script
to get a plain script template, that assignment is getting lost and has been forcefully reassigned to MicroSoft's Notepad Exclamation Question Crying or Very sad
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Fri Jun 18, 2004 12:44 pm    Post subject: Reply with quote

I can't explain that unless it's some built-in characteristic of the way templates work. There's nothing in the Installer that does it.

You might try a reg file like the below. I tried this and it works even after the new/script option has been used.

Windows Registry Editor Version 5.00

; This first line is the default verb to use when you double-click a script, etc.:
[HKEY_CLASSES_ROOT\AutoHotkeyScript\Shell]
@="Run"

[HKEY_CLASSES_ROOT\AutoHotkeyScript\Shell\Edit\Command]
@="c:\\util\\bin\\metapad.exe %1"

[HKEY_CLASSES_ROOT\AutoHotkeyScript\Shell\Run\Command]
@="c:\\util\\bin\\metapad.exe %1"

; [HKEY_CLASSES_ROOT\AutoHotkeyScript\Shell\Open\Command]
; @="c:\\util\\bin\\metapad.exe %1"


It's best to leave the Open cmd commented out unless you know you need that one changed also. Otherwise, there will be no way to launch a script directly from the context menu.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports 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