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

Next revision
Previous revision
wiki:windows:auto_hotkey:auto_hoykey [2016/05/13 12:56] – created mattwiki:windows:auto_hotkey:auto_hoykey [2016/09/13 15:54] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== Auto Hot Key ====== ====== Auto Hot Key ======
 +https://autohotkey.com/
 +
 +AutoHotKey is a scripting and automation program with an emphasis on keyboard shortcuts. I am by no means an expert and am just starting to find all the useful things it can do. I am in the process of migrating from my batch files to accomplishing these tasks with AHK.
 +
 +==== Note on Working Directory ====
 +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 ===== ===== My Scripts =====
 +
 +  * [[#Window Always on Top|Window Always on Top]]
 +  * [[#Insert Date|Insert Date]]
 +  * [[#Create Dated Directory|Create Dated Directory]]
 +  * [[#Create Dated Directory with Prefix|Create Dated Directory with Prefix]]
 +  * [[#Move PDFs to New Dated Sub-Folder|Move PDFs to New Dated Sub-Folder]]
 +  * [[#Run Program|Run Program]]
 +
 ==== Window Always on Top ==== ==== Window Always on Top ====
 +This will toggle any window to be always on top. It is a 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:: ^SPACE::
Line 9: Line 26:
  
 ==== Insert Date ==== ==== Insert Date ====
 +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.
 +
 <code> <code>
 :R*?:ddd:: :R*?:ddd::
Line 17: Line 36:
  
 ==== Create Dated Directory ==== ==== Create Dated Directory ====
 +This creates a folder named "YYYYMMDD" in current directory.
 +
 <code> <code>
 ^!d:: ^!d::
Line 27: Line 48:
  
 ==== Create Dated Directory with Prefix ==== ==== Create Dated Directory with Prefix ====
 +This creates a folder named "Unsigned Invoices YYYYMMDD" in the curernt directory.
 +
 <code> <code>
 ^!c:: ^!c::
Line 38: Line 61:
  
 ==== Move PDFs to New Dated Sub-Folder ==== ==== Move PDFs to New Dated Sub-Folder ====
 +This creates a new dated directory and moves all PDFs in current directory into it. Saves a lot of scrolling to select a few hundred files and then back to dump them to appropriate directory.
 +
 <code> <code>
 ^!m:: ^!m::
Line 48: Line 73:
 </code> </code>
  
-==== Run/Focus Notepad++ ====+==== Run Program ==== 
 +Pretty straightforward. 
 <code> <code>
 ^!n:: ^!n::
 Run C:\Program Files (x86)\Notepad++\notepad++.exe Run C:\Program Files (x86)\Notepad++\notepad++.exe
 </code> </code>
wiki/windows/auto_hotkey/auto_hoykey.1463158576.txt.gz · Last modified: 2016/09/13 15:54 (external edit)