Example of adding it to your AHK File:
#NoTrayIcon beardboyTray("Meeting","`n`nDon't forget you have a meeting!!!`nTime: 11:00am`nPlace: Conference Room",1,2000) ; Play sound and custom 2 second delay WinWaitClose, Meeting ExitApp #Include beardboyTray.ahk
beardboyTray.ahk
; Program: Beardboy Tray ; Version: .00 ; Last Modified: 2005.09.06 ; Last Changes: First Version /* Example of how to popup a message beardboyTray(title,text,sound,timeout) beardboyTray("beardboy's TrayTip","This is a Test") ; No sound and Default 4 second timeout beardboyTray("beardboy's TrayTip","This is a Test",0,10000) ; No sound and Custom 10 second timeout. beardboyTray("beardboy's TrayTip","This is a Test",1,0) ; Sound and User must close TrayTip */ beardboyTray(title,text, sound = 0, timeout = 4000) { global bt_title = %title% x := % A_ScreenWidth - 185 y := % A_ScreenHeight - 30 gui, 99:+ToolWindow +border gui, 99:color, FFFFFF gui, 99:Margin, 0, 0 gui, 99:Add, Text, center w175 h90 cBlue, %text% Gui, 99:Show, x%x% y%y%, %title% if sound <> 0 SoundPlay, %SystemRoot%\Media\notify.wav SetWinDelay, 5 WinGetPos,, guiy,,, %title% Loop, 55 { guiy -= 2 WinMove, %title%,,, %guiy% } if timeout <> 0 SetTimer, CloseTray, %timeout% } 99GuiClose: Gui, 99:Destroy return CloseTray: SetTimer, CloseTray, Off SetWinDelay, 5 WinGetPos,, guiy,,, %bt_title% Loop, 55 { guiy += 2 WinMove, %bt_title%,,, %guiy% } Gui, 99:Destroy return
thanks,
beardboy