windows create file shortcut code example
Example: create a file using shortcut key in windows 10
If you want to customise a keyboard shortcut, you could use something like
AutoHotKey. An example script to do what you want would be like this.
F4::
Macro1:
Click, Right, 1
Sleep, 10
SendRaw, wt
Return
You can use this script by copying it to a text file and saving it as .ahk.
With AutoHotKey installed, just double-click to activate.
Quick note:
The first line tells it to run the actions when the F4 is pressed. You can
change the key by editing the first line.
The modifier keys are as follows:
# Win (Windows logo key)
! Alt
^ Control
+ Shift
& An ampersand may be used between any two keys or mouse buttons to combine
them into a custom hotkey.
Where ^C means Control + C