Unplug Your Mouse: Workflow Automation With Uto Ot Ey
Unplug Your Mouse: Workflow Automation With Uto Ot Ey
Workflow Automation
with AutoHotKey
Andrew Weidner
Robert Wilson
Mice make simple things easy
and complex things impossible.
Mice make simple things easy
and complex things impossible.
Mice are useful and fun, but they tend to
slow down repetitive file management tasks.
Do things faster with your keyboard.
Keyboard Optimization: why type fifty-two keys
when you can do the same thing with two?
(Ctrl + 4)
Overview
• Keyboard Shortcuts
• AutoHotkey Scripts
• Tools & References
• Demonstration
Keyboard Shortcuts
Windows Explorer
; hotkey: Ctrl + 1
^1::
; hotkey: Win + k
#k::
Send, {AltDown}f{AltUp}
Sleep, 200
Send, w
Sleep, 200
Send, f
AutoHotkey Scripts
Complex: rename a file
Sleep, 100
WinActivate, Keywords
SendInput, %DefinedKeywords% Send formatted keywords
Sleep, 100
30GuiClose:
30ButtonOK: Close Window
Gui, 30:Submit
ETD Metadata: Part 5
Open Metadata XML File
IfExist, C:\Program Files\jEdit\jedit.exe Open metadata.xml in jEdit (.exe or .bat)
Run, C:\Program Files\jEdit\jedit.exe metadata.xml
Else
Run, C:\Program Files\jEdit\jedit.bat metadata.xml
Send, {ControlDown}f{ControlUp}
Sleep, 200
Open Search
window
ETD Metadata: Part 6
Prepare for Keyword Entry
WinWait, Search And Replace, Wait for Search window to open
IfWinNotActive, Search And Replace, , WinActivate, Search And Replace,
WinWaitActive, Search And Replace, Search for ‘#Keywordmeta’
SendInput, {#}{ShiftDown}k{ShiftUp}eywordmeta{Enter}
Sleep, 200 Types ‘#Keywordmeta’
SendInput, {Esc}
Close Search window
‘#Keywordmeta’ is highlighted
ETD Metadata: Part 7
Enter Keywords
If (Keyword1 <> "") Send keywords stored in
SendInput, <subject qualifier="KWD">%Keyword1%</subject> variables (IF they exist!)
Sleep, 100
If (Keyword2 <> "")
SendInput, `r<subject qualifier="KWD">%Keyword2%</subject>
Sleep, 100
; code repeats to Keyword10
Tools & References
• ETD_Metadata (rw)
• SuperPaste (rw)
• OpenWithPhotoshop (rw)
• TDNP_Microfilm (aw)
• NewspaperNotes (aw)
• DashboardTools (aw)