I want to create a new text file by right click -> New -> New text document using AutoHotKey. How do I do this? I am new to AutoHotKey.
Edit:
Using Autohotkey, you can assign shortcut for some tasks such as running a particular program like Notepad. You do so by writing scripts. You can find the details on the Autohotkey website. I want to write a keyboard shortcut to manually automate the "right click -> New -> New text document" functionality.
I figured out that it could be done by adding the following script to to AutohotKey's existing script.
^+t::
Click, right, 1024, 355 (or any other mouse co-ordinates for that matter)
Send w
Send t
return
However, this syntax wouldn't work when I tried. Could someone tell me what's wrong and tell how should be the correct syntax?