Skip to content

Instantly share code, notes, and snippets.

@mythz
Created June 27, 2017 01:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mythz/43740d83ec6757485f4c8e51b55d98e0 to your computer and use it in GitHub Desktop.
Save mythz/43740d83ec6757485f4c8e51b55d98e0 to your computer and use it in GitHub Desktop.
Reprogram function keys to launch Apps or open URLs using AutoHotKey
;-----------------------------------------
; keyboard shortcuts using https://autohotkey.com/docs/AutoHotkey.htm
;=========================================
; --------------------------------------------------------------
; NOTES
; --------------------------------------------------------------
; ! = ALT
; ^ = CTRL
; + = SHIFT
; # = WIN
;
; Debug action snippet: MsgBox You pressed Control-A while Notepad is active.
#InstallKeybdHook
#SingleInstance force
SetTitleMatchMode 2
SendMode Input
; --------------------------------------------------------------
; F13, F17-19 custom app launchers, see http://www.autohotkey.com/docs/Tutorial.htm for usage info
; --------------------------------------------------------------
F13::Run %windir%\system32\SnippingTool.exe
F17::Run https://gmail.com
F18::Run https://news.ycombinator.com
F19::Run https://stackoverflow.com/search?tab=newest&q=servicestack
; --------------------------------------------------------------
; Application specific
; --------------------------------------------------------------
; Google Chrome
;#IfWinActive, ahk_class Chrome_WidgetWin_1
; Show Web Developer Tools with cmd + alt + i
;#!i::Send {F12}
;#IfWinActive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment