How do I use autohotkey to create a new text file by right click -> New -> New text document? -


i want create new text file right click -> new -> new text document using autohotkey. how do this? new autohotkey.

edit:

using autohotkey, can assign shortcut tasks such running particular program notepad. writing scripts. can find details on autohotkey website. want write keyboard shortcut manually automate "right click -> new -> new text document" functionality.

i figured out done adding following script autohotkey's existing script.

^+t::   click, right, 1024, 355 (or other mouse co-ordinates matter)   send w   send t  return 

however, syntax wouldn't work when tried. tell me what's wrong , tell how should correct syntax?

as ken white said have built in windows explorer, right click > new > new text document, it's kinda pointless having 1 doing same thing.

however, if want use autohotkey create new text file more efficiently , faster recommend script

settitlematchmode regex msgbox, 64, newtextfile, usage: when in folder in windows explorer press ctrl + shift + t create empty text file.`nif press multiple times, multiple files created (e.g. newtextfile0.txt, newtextfile1.txt)  #ifwinactive ahk_class explorewclass|cabinetwclass     ^+t::         newtextfile()         return #ifwinactive  newtextfile() {     wingettext, full_path,     stringsplit, word_array, full_path, `n     loop, %word_array0%     {         ifinstring, word_array%a_index%, address         {             full_path := word_array%a_index%             break         }     }      full_path := regexreplace(full_path, "^address: ", "")     stringreplace, full_path, full_path, `r, ,      ifinstring full_path, \     {         nofile = 0         loop         {             ifexist  %full_path%\newtextfile%nofile%.txt                     nofile++                 else                     break         }         fileappend, ,%full_path%\newtextfile%nofile%.txt     }     else     {         return     } } 

when have running , in folder using windows explorer (or desktop) press ctrl+shift+t create new text files, many you'd like.

https://github.com/ilirb/ahk-scripts/blob/master/executable/source/newtextfile.ahk


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -