; ; AutoHotkey Version: 1.x ; Language: English ; Platform: Win9x/NT ; Author: A.N.Other ; ; Script Function: ; Template script (you can customize this template by editing "ShellNew\Template.ahk" in your Windows folder) ; ; #NoEnv #SingleInstance Ignore DetectHiddenWindows, On SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. FormatTime, timedelivered, %A_Now%, Time Menu, Tray, Tip, %timedelivered%: New email was delivered to Outlook. Menu, Tray, NoStandard Menu, Tray, Add, Show Outlook, Show Menu, Tray, Add, Exit Menu, Tray, Default, Show Outlook Menu, Tray, Click, 1 RegRead, mailsoundfull, HKEY_CURRENT_USER, AppEvents\Schemes\Apps\.Default\MailBeep\.Current SplitPath, mailsoundfull, mailsound SoundPlay, %A_WinDir%\media\%mailsound%, wait WinWaitActive, ahk_class rctrl_renwnd32 Return Show: WinActivate, ahk_class rctrl_renwnd32 Return Exit: ExitApp