Skip to content

Instantly share code, notes, and snippets.

@deltaepsilon
Created October 14, 2011 20:31
Show Gist options
  • Save deltaepsilon/1288247 to your computer and use it in GitHub Desktop.
Save deltaepsilon/1288247 to your computer and use it in GitHub Desktop.
AutoHotkey Master File
;------------------------------------------------ Settings ------------------------------------------------------
DetectHiddenText, On
SetTitleMatchMode, 2
SetTitleMatchMode, slow
SetKeyDelay 10
SendMode Input
#NoEnv
#Hotstring EndChars -()[]{}:;'"/\?! .`n`t
#SingleInstance force
+CapsLock::CapsLock
CapsLock::
Send {Volume_Mute}
Return
Ins::
Send {Volume_Up 1}
Return
^Ins::
Send {Volume_Down 1}
Return
ScrollLock::Send !d^c
;------------------------------------------------ Excel ------------------------------------------------------
#IfWinActive, ahk_class XLMAIN
+F2::
SetKeyDelay, 50
SendEvent, {Esc}{Esc}!ohr
Return
#p::
SendEvent, !pi^{PgUp}^{PgUp}!z{Enter}
Sleep, 50
SendEvent, !pw1{Enter}!ph1{Enter}!Wi!po
Return
^+4::
SendEvent, !hncurrency{Enter}!h{NumPad9}!h{NumPad9}
Return
#IfWinActive
;------------------------------------------------ Access ------------------------------------------------------
#IfWinActive, ahk_class OMain
^#l::
;SetKeyDelay, 100
SendEvent, {AppsKey}f{Enter}!b{Enter}
Return
#IfWinActive
;------------------------------------------------ Oracle SQL Developer ------------------------------------------------------
#IfWinActive, ahk_class CabinetWClass
^#!o::
IfWinExist, Oracle SQL Developer
{
SendEvent {F2}^c{Enter}+{Tab}{Right}\^v
Loop, 30
{
SendEvent, ^+{Left}
}
SendEvent, ^c^c
WinActivate, Oracle SQL Developer
Sleep, 50
SendEvent, ^o
Sleep, 50
SendEvent, ^v{Enter}
}
Else
{
SendEvent {F2}^c{Enter}+{Tab}{Right}\^v
Loop, 30
{
SendEvent, ^+{Left}
}
SendEvent, ^c^c
Run C:\ORACLE\sqldeveloper\sqldeveloper.exe
WinWaitActive, Oracle SQL Developer
Sleep, 1000
;WinActivate, Oracle SQL Developer
SendEvent, ^o
Sleep, 50
SendEvent, ^v{Enter}
}
#IfWinActive
::blnc::(acct_blnc_amt = 0 or acct_status_cd = 'B')
Return
;------------------------------------------------ System Wide ------------------------------------------------------
NumLock::
Send, =
Return
+NumLock::
Send, {NumLock}
Return
^Home::
IfWinExist ahk_class MozillaWindowClass
{
WinActivate
}
else
{
Run firefox
}
Return
#s::
Send nelly{NumPad2}{NumPad5}{NumPad7}{Enter}{Alt}a
Return
F1::
IfWinExist, Outlook
{
WinActivate
}
else
{
Run, outlook
}
return
;F1::
;IfWinExist, Thunderbird
;{
; WinActivate
;}
;else
;{
; Run C:\Program Files\Mozilla Thunderbird\thunderbird.exe
;}
;return
#o::
Send cdesplin{Tab}password{Enter}
Return
#p::
Send password
Return
^#d::
Run, C:\Documents and Settings\cdesplin\My Documents\Dropbox
return
^#e::
Run, excel
Return
^#x::
Run C:\Program Files\Internet Explorer\iexplore.exe
Return
^#u::
Run U:\
Return
^#g::
IfWinExist ahk_group gmail
{
WinActivate
}
else
{
Run https://mail.google.com
}
Return
^#c::
Run R:\FinalAssembly\PROJECTS
Return
^#f::
Run, N:\Records & Information\Describe Systems\Applications\
Return
^#o::
Run C:\Program Files\sqldeveloper\sqldeveloper.exe
Return
^#j::
Run U:\JEMS
Return
#Down::WinMinimize,A
Return
#Up::WinMaximize,A
Return
#Left::WinRestore,A
Return
;------------------- Speedy window dragging
^#Down::
SetKeyDelay, 100
SendEvent, !{Space}m
Return
^#Right::
WinRestore, A
WinMove, A,, 2000, 200
;WinMaximize, A
Return
^#Left::
WinRestore, A
WinMove, A,,200,200
;WinMaximize, A
Return
;----------------------------------------- More Global Shortcuts
;Set up automated reloads of this file
^NumPad8::
Run, C:\Users\cdesplin\Dropbox\AutoHotkey.ahk
Return
^NumPad7::
IfWinExist ahk_class Notepad++
{
WinActivate
WinWait ahk_class Notepad++
WinActivate
WinWaitActive
SendInput {Alt}fo
SendInput C:\Users\cdesplin\Dropbox\AutoHotkey.ahk{Enter}
}
else
{
Run Notepad++
WinWait ahk_class Notepad++
WinActivate
WinWaitActive
SendInput {Alt}fo
SendInput C:\Users\cdesplin\Dropbox\AutoHotkey.ahk{Enter}
}
Return
^NumPad9::
Run C:\Program Files\AutoHotkey\AutoHotkey.chm
Run C:\Program Files\AutoHotkey\AU3_Spy.exe
Return
;#IfWinActive ahk_class ExploreWClass
;^n::
;SendEvent !fwf
;Return
#IfWinActive ahk_class CabinetWClass
^n::
SendEvent !fwf
Return
;^+c:
;SendEvent fwf
;SendEvent, {TAB}{TAB}{AppsKey}e
;Return
#IfWInActive
;------------------------------------------------ Rhapsody Player ------------------------------------------------------
;F10::
;IfWinExist, Rhapsody
;{
;WinActivate, Rhapsody
;}
;Else
;{
;Run, C:\Program Files\Rhapsody\rhapsody.exe
;}
;Return
;#IfWinExist, Rhapsody
;PAUSE::
;IfWinActive, Rhapsody
;{
;SendEvent, ^p
;}
;Else
;{
;WinActivate, Rhapsody
;SendEvent, ^p
;;Sleep, 50
;WinMinimize, A
;}
;Return
;#IfWInExist
;#IfWinActive, Rhapsody
;UP::
;SendEvent, ^p
;Return
;DOWN::
;SendEvent, ^s
;Return
;LEFT::
;SendEvent, ^b
;Return
;RIGHT::
;SendEvent, ^f
;Return
;#IfWinActive
;------------------------------------------------ Spotify Player ------------------------------------------------------
F10::
IfWinExist, ahk_class SpotifyMainWindow
{
WinActivate, ahk_class SpotifyMainWindow
}
Else
{
Run, C:\Program Files (x86)\Spotify\spotify.exe
}
Return
#IfWinExist, ahk_class SpotifyMainWindow
PAUSE::
IfWinActive, ahk_class SpotifyMainWindow
{
SendEvent, {Space}
}
Else
{
WinActivate, ahk_class SpotifyMainWindow
SendEvent, {Space}
;Sleep, 50
WinMinimize, A
}
Return
#IfWInExist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment