AutoHotkey Community

It is currently May 27th, 2012, 11:53 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: November 6th, 2005, 5:03 am 
Offline

Joined: October 15th, 2004, 1:23 pm
Posts: 19
BTW I've already saw this thread:
http://www.autohotkey.com/forum/viewtopic.php?t=2434

..and my HKCR\AutohotkeyScript\Shell\Edit\Command is already set to UltraEdit. This works fine for right-clicking an AHK file and choosing "Edit", but not for right-clicking the AHK tray icon and choosing "Edit This Script" for Autohotkey.ini. This always opens with Notepad!

I've even set the default "Open" file association for .INI files to UltraEdit-32 in Explorer, but the tray icon Edit still opens with Notepad!

I'd prefer if AutoHotkey simply did something equivalent of a
Code:
Run, Autohotkey.ini
but it seems to be doing a
Code:
Run, notepad.exe Autohotkey.ini


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 6th, 2005, 11:15 am 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
I do not know why the AHK.ini causes Notepad to start.


But for the second part, try to use
Code:
Run, %comspec% /c notepad.exe Autohotkey.ini
*not tested*

_________________
Ciao
toralf
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 6th, 2005, 2:02 pm 
Offline

Joined: October 15th, 2004, 1:23 pm
Posts: 19
Thanks Toralf, but I was merely trying to "pseudocode" of what AHK the program is doing internally; not quoting exact code that I can change.

The other option I thought of was doing Menu, Tray commands to replace "Edit this Script" with my own alternate one that fired up UltraEdit instead of Notepad on Autohotkey.ini, but I'd rather have this fixed in the program itself...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 6th, 2005, 2:33 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
The "Edit This Script" menu item internally does the equivalent of:
Run edit "%A_ScriptFullPath%"

In other words, it uses the file's associated "edit" verb, which shows up in the registry as an entry just like "open" except that it has the word "edit" in place of "open".

In the next update, this will be changed to try the "open" verb on .ini files if the "edit" verb fails. If at that time you have any more problems with it, please let me know.

Thanks for reporting it.


Last edited by Chris on November 6th, 2005, 5:46 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 6th, 2005, 3:51 pm 
Offline

Joined: October 15th, 2004, 1:23 pm
Posts: 19
Excellent info! I should have realized the Edit verb was called, given the Autohotkeyscript Edit registry change (referenced in my initial post above) was necessary for standalone .AHK scripts.

Quote:
In the next update, this will be changed to try the "open" verb on .ini files if the "edit" verb fails. If at that time you have any more problems with it, please let me know.

Will do...thanks as always for being so responsive Chris!


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


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