![]() The above script uses Ctrl + F2 to toggle the hidden file view, but you can change that to whatever you want by swapping out that ^F2 right at the start of the script. If HiddenFiles_Status = 2 RegWrite, REG_DWORD, % RootKey, % SubKey, Hidden, 1 else RegWrite, REG_DWORD, % RootKey, % SubKey, Hidden, 2 PostMessage, 0x111, 41504, ahk_id %ID% Return RegRead, HiddenFiles_Status, % RootKey, % SubKey, Hidden SubKey = Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced ![]() WClasses := "CabinetWClass ExploreWClass" IfInString, WClasses, %Class% GoSub, Toggle_HiddenFiles_Display I have some other examples above, but this script will keep them together and reload when you make a new one.ID := WinExist ( "A" ) WinGetClass ,Class, ahk_id %ID% 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. ![]() Newhs := ":*:" txtReplace "::" replacementTextįileAppend, `n%newhs%, %A_ScriptFullPath% 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. Note: the tilde in this hotkey allows the hotkey’s native function to still execute thus not overwriting it. ~#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. ![]() 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. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |