![]() ![]() ![]() I have some other examples above, but this script will keep them together and reload when you make a new one. Want to just download the script file insteadīasically, run this as an AutoHotkey script (it’ll stay running) and push CTRL SHIFT H and it’ll open a dialog to enter in text to type and text to replace when typed. You can choose from certain Optional Parameters like choosing custom icon files and encoding methods. Newhs := ":*:" txtReplace "::" replacementTextįileAppend, `n%newhs%, %A_ScriptFullPath% 1 Using Ahk2Exe for AutoHotKey We know that running AutoHotKey scripts is pretty difficult to execute but it is way better to run them as an executable. Gui, Add, Button, vbtnSubmit gSubmit, Submit It allows you to create auto replacements on the fly. Made a quick water downed version of a hotstring creator I once had. 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. An example script to do what you want would be like this. Note: the tilde in this hotkey allows the hotkey’s native function to still execute thus not overwriting it. Example: create a file using shortcut key in windows 10 If you want to customise a keyboard shortcut, you could use something like AutoHotKey. ~#n::įormatTime, stamp, yyyy-MM-dd h:mm:ss tt ^!n::įile = C:\path\to\notes\directory\%t%.txtįurthermore, if we want to use OneNote’s built in Quick Note, I made a hotkey that creates the Quick Note and adds the current date as the title triggered. ![]() This one will take what you have in your clipboard, write it to a text file in your notes directory of choice then, show you the file. !n::Įxpanding on that, I like to keep a directory of text file notes. This will copy the current path of the current File Explorer and create a new empty text file in that same directory (also notice I used !n as to not overwrite built in hotkeys). For me, I have WinZip installed and it’s trigger is a w leaving new text file the second w. And, the w and t keys only works if you don’t have more things in your context menu that have the w as the trigger key. AutoHotkey provides a simple, flexible syntax allowing you to focus more on the task at hand rather than every single little technicality. Good one! Though, I’m personally not a fan of overwriting global hotkeys #n is a new Quick Note in OneNote. ![]()
0 Comments
Leave a Reply. |