Skip to content

Instantly share code, notes, and snippets.

@Phunky
Created June 12, 2016 21:42
Show Gist options
  • Save Phunky/ddb555d787fb0803c46dfc0d45b3c775 to your computer and use it in GitHub Desktop.
Save Phunky/ddb555d787fb0803c46dfc0d45b3c775 to your computer and use it in GitHub Desktop.
Osx ahk
; IMPORTANT INFO ABOUT GETTING STARTED: Lines that start with a
; semicolon, such as this one, are comments. They are not executed.
; This script has a special filename and path because it is automatically
; launched when you run the program directly. Also, any text file whose
; name ends in .ahk is associated with the program, which means that it
; can be launched simply by double-clicking it. You can have as many .ahk
; files as you want, located in any folder. You can also run more than
; one ahk file simultaneously and each will get its own tray icon.
; SAMPLE HOTKEYS: Below are two sample hotkeys. The first is Win+Z and it
; launches a web site in the default browser. The second is Control+Alt+N
; and it launches a new Notepad window (or activates an existing one). To
; try out these hotkeys, run AutoHotkey again, which will load this file.
#z::Run www.autohotkey.com
; Swap CMD and CTRL around
LWin::Ctrl
; Select start
^Left::
Send, {Home}
return
; Select end
^Right::
Send, {End}
return
^+Left Up::
Send, {Shift down}{Home}
return
^+Right Up::Send, {Shift down}{End}
return
; Pound
+3::Send, {U+00A3}
; Hash key
!3::Send, {U+0023}
return
; Apple media keys
RAlt & F7::SendInput {Media_Prev}
RAlt & F8::SendInput {Media_Play_Pause}
RAlt & F9::SendInput {Media_Next}
RAlt & F10::SendInput {Volume_Mute}
RAlt & F11::SoundSet, -10
RAlt & F12::SoundSet, +10
Shift & F13:: SoundSet, 50
Shift & F14:: SoundSet, 100
; F13-15, standard windows mapping
F13::SendInput {PrintScreen}
F14::SendInput {ScrollLock}
F15::SendInput {Pause}
; Google Chrome
#IfWinActive, ahk_class Chrome_WidgetWin_1
; Show Web Developer Tools with cmd + alt + i
#!i::Send {F12}
; Show source code with cmd + alt + u
#!u::Send ^u
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment