Can I use AutoHotkey to create a shortcut to edit script files?
I'm aware that you can hit Context+E, or right-click and Edit. What would be faster would be say holding Ctrl+Shft and double-clicking file. A good precedence for this is how you can hold Alt and double-click a file to shortcut straight to the Properties dialog. Or holding Ctrl+Shft and double-clicking a folder to open in a new window.
This would obviously go for language files like AHK, BAT, VBS, REG files, etc.
Use Shell.Application.Windows to get the currently focused file in an Explorer window (not desktop).
To use
Edit
from the context menu replacerun notepad
withrun *Edit
The code was tested on Windows 7 and 10.