Open, Edit, and Close a File With a Single Key Combo

Here is a key combo to open a specific file for editing, then close it with the same combo.


#numpad9:: ; toggle dictionary list on and off.
keywait, #numpad9
if toggle := !toggle
{
Run, “C:\box\docs\ReadPlease-words.txt”
}
else
{
Send ^s
send, !{F4}
}
return

^^ This ahk script has been prooving its worth for about two years. I use it to maintain a list of word pronunciations for my text-to-speech software. You can use it for whatever file gets constant edits. In this instance, we’re using the Windows key plus the number 9 on the numeric key pad to open the file, make changes, then close the file. There is no confirmation dialog to hold things up; ctrl+s will do the saving just before alt+F4 does the closing. Hope you like.




via Moon
Share on Google Plus

About GN

GN (Galeri Nusantara) berusaha memberikan informasi terbaru mengenai berbagai hal yang ada diseluruh nusantara dan dunia dengan akurat dan sumber yang terpercaya.
    Blogger Comment
    Facebook Comment

0 comments :