wiki:windows:auto_hotkey:auto_hoykey
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| wiki:windows:auto_hotkey:auto_hoykey [2016/05/13 12:56] – created matt | wiki:windows:auto_hotkey:auto_hoykey [2026/03/26 12:41] (current) – matt | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Auto Hot Key ====== | + | ====== My AutoHotKey |
| - | ===== My Scripts ===== | + | |
| - | ==== Window Always on Top ==== | + | |
| - | < | + | |
| - | ^SPACE:: | + | |
| - | Winset, Alwaysontop, | + | |
| - | return | + | |
| - | </ | + | |
| - | ==== Insert Date ==== | + | ===== Essential Scripts ===== |
| - | < | + | I just recently finally overhauled my AHK scripts for v2. I've only done my essentials for daily use. There are a lot that I no longer use or have Python scripts to do a more thorough job with. |
| - | : | + | |
| - | FormatTime, CurrentDateTime,, | + | |
| - | SendInput %CurrentDateTime% | + | |
| - | return | + | |
| - | </ | + | |
| - | ==== Create Dated Directory ==== | ||
| < | < | ||
| - | ^!d:: | + | #Requires AutoHotkey v2.0 |
| - | Send !d | + | |
| - | Send ^c | + | |
| - | Destin = %Clipboard% | + | |
| - | FormatTime, DatedDir, , yyyyMMdd | + | |
| - | FileCreateDir, | + | |
| - | </ | + | |
| - | ==== Create Dated Directory with Prefix ==== | + | ; Insert 40 Underscores CTRL + - |
| - | < | + | ; I use this to insert ' |
| - | ^!c:: | + | ^-:: |
| - | Send !d | + | { |
| - | Send ^c | + | Send " |
| - | Destin = %Clipboard% | + | |
| - | PrefixName = Unsigned Invoices | + | } |
| - | FormatTime, DatedDir, , yyyyMMdd | + | |
| - | FileCreateDir, | + | |
| - | </ | + | |
| - | ==== Move PDFs to New Dated Sub-Folder ==== | + | ;Always on top CTRL + Space |
| - | < | + | ;There are other ways to do this with PowerToys and such, but I've been using this since way before those options were available. |
| - | ^!m:: | + | ^space:: |
| - | Send !d | + | { |
| - | Send ^c | + | |
| - | Destin = %Clipboard% | + | } |
| - | FormatTime, DatedDir, , yyyyMMdd | + | |
| - | FileCreateDir, | + | |
| - | FileMove, %Destin%\*.pdf, %Destin%\%DatedDir% | + | |
| - | </ | + | |
| - | ==== Run/Focus Notepad++ ==== | + | |
| - | < | + | ; Press D D D to insert date as YYYYMMDD |
| - | ^!n:: | + | ; The ability to quickly assign an inverse date to documents, logs, directories is essential for my sanity |
| - | Run C:\Program Files (x86)\Notepad++\notepad++.exe | + | :?*:ddd:: |
| + | { | ||
| + | ; FormatTime, OutputVar, Time, Format | ||
| + | myDate | ||
| + | SendInput(myDate) | ||
| + | } | ||
| + | |||
| + | ; Pres F F F to insert Fairfield. | ||
| + | ; I type my city name so many times in a day that I had to crate this shortcut | ||
| + | :?*:fff:: | ||
| + | { | ||
| + | Send " | ||
| + | return | ||
| + | } | ||
| + | |||
| + | ; Win+1or2 cycles virtual desktops | ||
| + | ; This makes Windows Virtual Desktops actually make sense again. Requiring 2 hands to navigate them is stupid. | ||
| + | #1:: Send "{LWin down}{LCtrl down}{Left down}{LWin up}{LCtrl up}{Left up}" | ||
| + | #2:: Send "{LWin down}{LCtrl down}{Right down}{LWin up}{LCtrl up}{Right up}" | ||
| </ | </ | ||
wiki/windows/auto_hotkey/auto_hoykey.1463158576.txt.gz · Last modified: (external edit)