Skip to content

Instantly share code, notes, and snippets.

@mattroyer
Created June 5, 2012 14:37
Show Gist options
  • Save mattroyer/2875394 to your computer and use it in GitHub Desktop.
Save mattroyer/2875394 to your computer and use it in GitHub Desktop.
AutoHotKey Configuration
; ------------
; Hotstrings
; ------------
::btw::By the way
::sig::--Matt Royer
; Ctrl+Shift+C
; ------------------------------------------------------
; Do a Google search for the contents of the clipboard
; ------------------------------------------------------
^+c::
{
Send, ^c
Sleep 50
Run, http://www.google.com/search?q=%clipboard%
Return
}
; Ctrl+Shift+D
; --------------------------------------------------
; Define a word from the contents of the clipboard
; --------------------------------------------------
^+d::
{
Send, ^c
Sleep 50
Run, http://dictionary.reference.com/browse/%clipboard%
Return
}
; Ctrl+Alt+N
; ---------------------------------------------------------
; Create a new Notepad document with the title "Untitled"
;
; If there is already an "Untitled" document, bring
; focus to that document.
; ---------------------------------------------------------
^!n::
IfWinExist Untitled - Notepad
WinActivate
else
Run Notepad
return
; Ctrl+Alt+C
; -----------------------------------
; Opens a new command prompt window
; -----------------------------------
^!c::
Run cmd
Return
; Capslock
; ----------------------------
; Minimize the active window
; ----------------------------
Capslock::WinMinimize,A
; Shift+Capslock
; ----------------------------------------
; Toggle normal function of Capslock key
; ----------------------------------------
+Capslock::Capslock
; WindowsKey+W
; -----------------------------------------------------
; Restore the last window you minimized with Capslock
; -----------------------------------------------------
#w::!+Tab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment