Skip to content

Instantly share code, notes, and snippets.

@hsab
Created September 2, 2018 21:59
Show Gist options
  • Save hsab/205312bf4f4e13ac44bfda4422ff4adb to your computer and use it in GitHub Desktop.
Save hsab/205312bf4f4e13ac44bfda4422ff4adb to your computer and use it in GitHub Desktop.

Revisions

  1. @d13r d13r revised this gist Oct 10, 2017. No changes.
  2. @d13r d13r revised this gist May 28, 2017. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions run-program.ahk
    Original file line number Diff line number Diff line change
    @@ -7,8 +7,8 @@
    ; [1]: http://www.autohotkey.com/docs/Hotkeys.htm


    ; Win+M - Open Gmail in Chrome
    #m::
    ; Win+Alt+G - Open Gmail in Chrome
    #!g::
    Run "C:\Program Files\Google\Chrome\Application\chrome.exe" --app="https://mail.google.com/mail/"
    Return

  3. @d13r d13r revised this gist Aug 19, 2014. 2 changed files with 9 additions and 3 deletions.
    3 changes: 0 additions & 3 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +0,0 @@
    This is a simple and pretty generic example of an AutoHotkey script to run a program when you press a keyboard shortcut. Add as many of these as you want to a `.ahk` file, and set that to be run at startup.

    See the [Hotkeys reference](http://www.autohotkey.com/docs/Hotkeys.htm) for details of the modifiers and keys available.
    9 changes: 9 additions & 0 deletions run-program.ahk
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,12 @@
    ; This is a simple and pretty generic example of an AutoHotkey script to run a
    ; program when you press a keyboard shortcut. Add as many of these as you want
    ; to a .ahk file, and set that to be run at startup.

    ; See the Hotkeys reference [1] for details of the modifiers and keys available.

    ; [1]: http://www.autohotkey.com/docs/Hotkeys.htm


    ; Win+M - Open Gmail in Chrome
    #m::
    Run "C:\Program Files\Google\Chrome\Application\chrome.exe" --app="https://mail.google.com/mail/"
  4. @d13r d13r created this gist Mar 3, 2012.
    3 changes: 3 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    This is a simple and pretty generic example of an AutoHotkey script to run a program when you press a keyboard shortcut. Add as many of these as you want to a `.ahk` file, and set that to be run at startup.

    See the [Hotkeys reference](http://www.autohotkey.com/docs/Hotkeys.htm) for details of the modifiers and keys available.
    9 changes: 9 additions & 0 deletions run-program.ahk
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    ; Win+M - Open Gmail in Chrome
    #m::
    Run "C:\Program Files\Google\Chrome\Application\chrome.exe" --app="https://mail.google.com/mail/"
    Return

    ; Win+Shift+Break - Edit this file
    #+Break::
    Run "c:\Program Files\Vim\vim73\gvim.exe" "d:\AutoHotkey.ahk"
    Return