Fun with Gmail and AutoHotkey

The following Gmail/Firefox AutoHotkey hack was a byproduct of my in-flight boredom today, but I thought it might be useful to others. In essence, it remaps the right Alt key to load Mozilla Firefox (if it isn’t already running), and then open a new Gmail Compose tab within which to write a new email message. Software prerequisites are Gmail Manager, AutoHotkey, and the Greasemonkey script Gmail macros.

; Use right-alt key to create new Gmail compose window in Firefox
RAlt::
SetTitleMatchMode, 2
IfWinExist Mozilla Firefox
    WinActivate
else {
    Run C:\Program Files\Mozilla Firefox\firefox.exe
    WinWait Mozilla Firefox
    }
IfWinExist Gmail
    Send c
else
    {   
    MouseMove, 50, 200
    MouseClick, right
    Send m
    Send {Right}
    Send {Down}
    Send {Enter}
    }
return

Related posts:

  1. Technology: How to be a Gmail Master
  2. A Greasemonkey (Gmail) Christmas
  3. Gmail Accounts Here …
  4. Paul is Lost in Google Space
  5. Gmail is too Small