Created
February 13, 2013 19:37
-
-
Save noahcoad/4947434 to your computer and use it in GitHub Desktop.
3 handy global hotkeys for composing email
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; update as needed | |
chrome := userprofile "\Local Settings\Application Data\Google\Chrome\Application\chrome.exe" | |
iexplorer := "C:\Program Files (x86)\Internet Explorer\iexplore.exe" | |
; Open Gmail Inbox | |
#^e:: OpenChromeUrl("http://mail.google.com/mail") | |
; Compose Gamil Email | |
#^c:: OpenChromeUrl("https://mail.google.com/mail/?view=cm&fs=1&tf=1") | |
; Compose Email to Noah | |
#^n:: OpenChromeUrl("https://mail.google.com/mail/?view=cm&fs=1&tf=1&to=%22Noah%20Coad%22%20%[email protected]%3E") | |
; Opens a link in Google Chrome if possible | |
OpenChromeUrl(url) | |
{ | |
global chrome | |
if (FileExist(chrome)) | |
Run %chrome% %url% | |
else | |
OpenIExplorerUrl(url) | |
} | |
; Opens a link in Internet Explorer | |
OpenIExplorerUrl(url) | |
{ | |
global iexplorer | |
Run %iexplorer% %url% | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment