User Tools

Site Tools


wiki:windows:auto_hotkey:auto_hoykey

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
wiki:windows:auto_hotkey:auto_hoykey [2016/05/13 13:10] – [Insert Date] mattwiki:windows:auto_hotkey:auto_hoykey [2026/03/26 12:41] (current) matt
Line 1: Line 1:
-====== Auto Hot Key ====== +====== My AutoHotKey Scripts ======
-A note on all of these Windows Explorer related scripts. It is incredibly cumbersome grabbing the working directory of the current Windows Explorer Window. I decided on a shortcut of focusing on the address bar and copying the address and utilizing the informatoin that way. It is not the fastest script and might have to be executed a couple times before it takes. But it is still easier than doing some of the selecting operations that the later scripts save.+
  
-===== My Scripts ===== +===== Essential Scripts ===== 
-==== Window Always on Top ==== +I just recently finally overhauled my AHK scripts for v2I've only done my essentials for daily use. There are lot that I no longer use or have Python scripts to do a more thorough job with.
-This will toggle any window to be always on topIt is built in Windows function that normally has to be hooked into by the developer. This enables it universally. This was the one that brought me to AutoHotKey, because my boss wanted calculator to be locked on top.+
  
 <code> <code>
-^SPACE:: +#Requires AutoHotkey v2.0
-Winset, Alwaysontop, , A +
-return +
-</code>+
  
-==== Insert Date ==== +Insert 40 Underscores CTRL + - 
-This will replace a succession of three d's with the current date in YYYYMDD format. I use this date string for a ton of stuff so this one is super handy. [[date_formats|Here is list]] of a few different formats that are possible.+I use this to insert 'line-bar' or sorts in any notes or documentation quickly and reliably 
 +^-:: 
 +
 +    Send "_______________________________________" 
 +    return 
 +}
  
-<code> +;Always on top CTRL + Space 
-:R*?:ddd:: +;There are other ways to do this with PowerToys and such, but I've been using this since way before those options were available. 
-FormatTimeCurrentDateTime,, yyyyMMdd +^space:: 
-SendInput %CurrentDateTime% +
-return +    WinSetAlwaysOnTop -1"A" 
-</code>+}
  
-==== Create Dated Directory ==== 
-This creates a folder named "YYYYMMDD" in current directory. 
  
-<code> +; Press D D D to insert date as YYYYMMDD 
-^!d:: +; The ability to quickly assign an inverse date to documents, logs, directories is essential for my sanity 
-Send !d +:?*:ddd:: 
-Send ^c +{ 
-Destin = %Clipboard% +    ; FormatTime, OutputVarTimeFormat 
-FormatTime, DatedDir, , yyyyMMdd +    myDate := FormatTime("yyyyMMdd"
-FileCreateDir%Destin%\%DatedDir% +    SendInput(myDate) 
-</code>+}
  
-==== Create Dated Directory with Prefix ==== +; Pres F F F to insert Fairfield. 
-This creates folder named "Unsigned Invoices YYYYMMDDin the curernt directory.+; I type my city name so many times in day that I had to crate this shortcut 
 +:?*:fff:: 
 +
 +    Send "Fairfield" 
 +    return 
 +}
  
-<code> +; Win+1or2 cycles virtual desktops 
-^!c:: +This makes Windows Virtual Desktops actually make sense againRequiring 2 hands to navigate them is stupid
-Send !d +#1:: Send "{LWin down}{LCtrl down}{Left down}{LWin up}{LCtrl up}{Left up}" 
-Send ^c +#2:: Send "{LWin down}{LCtrl down}{Right down}{LWin up}{LCtrl up}{Right up}"
-Destin = %Clipboard% +
-PrefixName = Unsigned Invoices +
-FormatTime, DatedDir, , yyyyMMdd +
-FileCreateDir, %Destin%\%PrefixName% %DatedDir% +
-</code> +
- +
-==== Move PDFs to New Dated Sub-Folder ==== +
-This creates a new dated directory and moves all PDFs in current directory into itSaves a lot of scrolling to select a few hundred files and then back to dump them to appropriate directory+
- +
-<code> +
-^!m:: +
-Send !d +
-Send ^c +
-Destin = %Clipboard% +
-FormatTime, DatedDir, , yyyyMMdd +
-FileCreateDir, %Destin%\%DatedDir% +
-FileMove, %Destin%\*.pdf, %Destin%\%DatedDir% +
-</code> +
- +
-==== Run/Focus Notepad++ ==== +
-Pretty straightforward. +
- +
-<code> +
-^!n:: +
-Run C:\Program Files (x86)\Notepad++\notepad++.exe+
 </code> </code>
wiki/windows/auto_hotkey/auto_hoykey.1463159427.txt.gz · Last modified: (external edit)