I'm using the solution from How to create a new text document (TXT) file by a Hotkey? since a few years, with Autohotkey, and it allows to create a new text file anywhere in the Windows explorer with a keyboard shortcut.
There is one drawback: when a file already has focus in the Explorer file list ("Details" view), it doesn't work, mainly because, when a file is selected, the Contextual menu doesn't show the "New > Text document".
Question: how to have a shortcut that creates a new text document, even if a file is currently selected in Details view of the Windows Explorer?
Answer
I'm finally using:
@davidmneedham's solution when in Explorer window: Alt, f, w, t
Right click and w, t in other cases (such as Desktop)
Here is the code:
#IfWinActive ahk_class CabinetWClass
F4:: Send {ALT}fwt
#IfWinActive
F4::
Click,,Right
Send wt
Return
No comments:
Post a Comment