to change AutoHotKey default editor in Win10 to VS code?
seems very difficult in this great big win10 BTW the win 10 in total looks like as stupikd clickie bunti app it remembers me to this modern webpages with 40% white paper and big wallpaper and less functionallity
How to change AutoHotKey default editor in Win10 Topic is solved
How to change AutoHotKey default editor in Win10
Last edited by SL5 on 23 Apr 2018, 12:21, edited 1 time in total.
github>g_IntelliSense + next improvements + forum
ahk..org>onlineAHKprettyfy, ahk..com>Refactoring
ahk..com>newposts Unanswrd myposts, Donations are appreciated if I could help you
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
ahk..org>onlineAHKprettyfy, ahk..com>Refactoring
ahk..com>newposts Unanswrd myposts, Donations are appreciated if I could help you
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
Re: How to change AutoHotKey default editor in Win10 Topic is solved
Computer\HKEY_CLASSES_ROOT\AutoHotkeyScript\Shell\Edit\Command
C:\Program Files\Microsoft VS Code\Code.exe %1
C:\Program Files\Microsoft VS Code\Code.exe %1
github>g_IntelliSense + next improvements + forum
ahk..org>onlineAHKprettyfy, ahk..com>Refactoring
ahk..com>newposts Unanswrd myposts, Donations are appreciated if I could help you
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
ahk..org>onlineAHKprettyfy, ahk..com>Refactoring
ahk..com>newposts Unanswrd myposts, Donations are appreciated if I could help you
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
Re: How to change AutoHotKey default editor in Win10
Hi I needed to enclose the values in double quotes :
Code: Select all
Computer\HKEY_CLASSES_ROOT\AutoHotkeyScript\Shell\Edit\Command
"C:\Program Files\Microsoft VS Code\Code.exe" "%1"
Re: How to change AutoHotKey default editor in Win10
FYI for anyone who wants this. On my new computer with Windows 10, the following key was the one needed to make the editor change work for my portable AHK.
HKEY_CURRENT_USER\SOFTWARE\Classes\Applications\AutoHotkey.exe\shell\edit\command
HKEY_CURRENT_USER\SOFTWARE\Classes\Applications\AutoHotkey.exe\shell\edit\command
-
- Posts: 9
- Joined: 25 Oct 2021, 20:33
Re: How to change AutoHotKey default editor in Win10
Here's a little script I improved from the archived forums about the same issue (not necessarily windows 10) hope it helps someone
Code: Select all
If not A_IsAdmin{
Run *RunAs "%A_ScriptFullPath%" ; causes script to reload and be run as admin
}
#SingleInstance, Force ; prevent's 2nd prompt to change the editor
InputBox, UserInput, Default AutoHotKey Editor change, Please enter a full path name for your editor
if ErrorLevel
MsgBox, Ah... Don't want - so bye :)
else
{
MsgBox, Changing default AutoHotKey editor to "%UserInput%"
RegWrite, REG_SZ, HKEY_CLASSES_ROOT, AutoHotkeyScript\Shell\Edit\Command,, "%UserInput%" "`%1"
}
Re: How to change AutoHotKey default editor in Win10
This works great, thanks so muchTechnomage Awunes wrote: ↑11 Nov 2021, 13:09Here's a little script I improved from the archived forums about the same issue (not necessarily windows 10) hope it helps someone
Code: Select all
If not A_IsAdmin{ Run *RunAs "%A_ScriptFullPath%" ; causes script to reload and be run as admin } #SingleInstance, Force ; prevent's 2nd prompt to change the editor InputBox, UserInput, Default AutoHotKey Editor change, Please enter a full path name for your editor if ErrorLevel MsgBox, Ah... Don't want - so bye :) else { MsgBox, Changing default AutoHotKey editor to "%UserInput%" RegWrite, REG_SZ, HKEY_CLASSES_ROOT, AutoHotkeyScript\Shell\Edit\Command,, "%UserInput%" "`%1" }
Who is online
Users browsing this forum: ByronicZero, leothlon and 111 guests