From 1b6e527af725e02bf1a530438aea6058235555d7 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Tue, 30 Jul 2013 10:54:23 -0400 Subject: [PATCH] move shortcuts into JoshsAutoHotKey.ahk; add Win+N Sticky Notes shortcut --- JoshsAutoHotKey.ahk | 41 +++++++++++++++++++++++++++++++++++++++++ shortcuts.ahk | 25 ------------------------- 2 files changed, 41 insertions(+), 25 deletions(-) delete mode 100755 shortcuts.ahk diff --git a/JoshsAutoHotKey.ahk b/JoshsAutoHotKey.ahk index 09ae797..7737df5 100644 --- a/JoshsAutoHotKey.ahk +++ b/JoshsAutoHotKey.ahk @@ -205,3 +205,44 @@ if (class = "ExploreWClass" or class = "CabinetWClass") } Send {WheelUp} return + + + + + +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +; Keyboard Shortcuts + +; Win+A open command prompt (used to be aterm) +#A:: +Run C:\Windows\System32\cmd.exe +return + +; Win+C open calculator +#C:: +Run "C:\Program Files (x86)\SpeedCrunch\speedcrunch.exe" +return + +; Win+G open GVIM +#G:: +Run C:\apps\Vim\vim73\gvim.exe +return + +; Win+E opens Windows Explorer to my workspace directory +#E:: +Run C:\Windows\system32\explorer.exe C:\Workspace\Holtrop +return + +; Win+N opens a new sticky note +#N:: +WinGet notes_window,ID,ahk_class Sticky_Notes_Note_Window +if notes_window +{ + WinActivate,ahk_id %notes_window% + Send {Ctrl down}{n}{Ctrl up} +} +else +{ + Run %windir%\sysnative\StikyNot.exe +} +return diff --git a/shortcuts.ahk b/shortcuts.ahk deleted file mode 100755 index a76db70..0000000 --- a/shortcuts.ahk +++ /dev/null @@ -1,25 +0,0 @@ -; shortcuts.ahk -; Version 1.1 -; 2011-05-23 - -#SingleInstance force - -; Win+A open command prompt (used to be aterm) -#A:: -Run C:\Windows\System32\cmd.exe -return - -; Win+C open calculator -#C:: -Run "C:\Program Files (x86)\SpeedCrunch\speedcrunch.exe" -return - -; Win+G open GVIM -#G:: -Run C:\apps\Vim\vim73\gvim.exe -return - -; Win+E opens Windows Explorer to my workspace directory -#E:: -Run C:\Windows\system32\explorer.exe C:\Workspace\Holtrop -return