 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Bartimus
Joined: 10 Nov 2005 Posts: 127 Location: Texas
|
Posted: Fri Sep 14, 2007 1:33 am Post subject: Toaster Popups |
|
|
I would like to see a feature for Toaster Popups like the ones used in MS Messenger 8 and NOD32 AV. The NOD32 one's would be especially be nice because they're not static like a TRAYTIP and you can put a progress bar inside of them too.
I'm sure I can achieve this effect with GUI and GUICONTROL, but think it would be so much easier if there was a command like TRAYTIP. You can call it TOASTER or TRAYPOPUP |
|
| Back to top |
|
 |
Mustang
Joined: 17 May 2007 Posts: 420 Location: England
|
Posted: Fri Sep 14, 2007 1:56 am Post subject: |
|
|
Quite a few windows programs use this:
Windows Live Messenger
Windows Live Mail
Windows Media Player
eBay Alerts
Just to name a few that popup from time to time on my system
This leads me to think that there might be something that can be done with DllCall to achieve this
Not sure, but might be worth having a look at |
|
| Back to top |
|
 |
aCkRiTe
Joined: 21 Jul 2006 Posts: 552
|
Posted: Fri Sep 14, 2007 3:55 am Post subject: |
|
|
Something like this maybe...
| Code: |
#SingleInstance Force
#Persistent
#NoEnv
SetBatchLines, -1
SysGet, MonitorWorkArea, MonitorWorkArea
MonitorWorkAreaBottom -= 65
MonitorWorkAreaRight -= 307
Gui, +ToolWindow +LastFound +AlwaysOnTop
Gui, Color, Silver
Gui, Font, s14 cRed
Gui, Add, Text, , This is a Toaster PopUp window!
Gui, Show, w300 h40 x%MonitorWorkAreaRight% y%MonitorWorkAreaBottom%, Toaster PopUp
Sleep, 3000
Trans_Num = 255
Loop, 255
{
WinSet, TransParent, %Trans_Num%, Toaster PopUp
Sleep, 20
Trans_Num--
}
Gui, Destroy
ExitApp
|
_________________
HTH...
 |
|
| Back to top |
|
 |
haichen
Joined: 05 Feb 2007 Posts: 156 Location: Osnabrück, Germany
|
Posted: Fri Sep 14, 2007 11:09 am Post subject: |
|
|
| Try also InfoboxZ from IsNull. Very nice! |
|
| Back to top |
|
 |
Rhys
Joined: 17 Apr 2007 Posts: 758 Location: Florida
|
Posted: Mon Sep 17, 2007 5:25 pm Post subject: |
|
|
With some help from Bobo and Engunneer, here's a modification of aCkRiTe's code: | Code: | #SingleInstance Force
#NoTrayIcon
#NoEnv
SetBatchLines, -1
DetectHiddenWindows, On
SysGet, Workspace, MonitorWorkArea
Gui, -Caption +ToolWindow +LastFound +AlwaysOnTop +Border
Gui, Color, White
Gui, Font, s14 cRed
Gui, Add, Text, gFade, Your Toast is Ready!`nCOME EAT YOUR TOAST!!!!
Gui, Show, Hide
GUI_ID := WinExist()
WinGetPos, GUIX, GUIY, GUIWidth, GUIHeight, ahk_id %GUI_ID%
NewX := WorkSpaceRight-GUIWidth-5
NewY := WorkspaceBottom-GUIHeight-5
Gui, Show, Hide x%NewX% y%NewY%
DllCall("AnimateWindow","UInt",GUI_ID,"Int",500,"UInt","0x00040008") ; TOAST!
Return
Fade:
DllCall("AnimateWindow","UInt",GUI_ID,"Int",1000,"UInt","0x90000") ; Fade out when clicked
ExitApp |
_________________ [Join IRC!]
 |
|
| Back to top |
|
 |
aCkRiTe
Joined: 21 Jul 2006 Posts: 552
|
Posted: Mon Sep 17, 2007 6:10 pm Post subject: |
|
|
Very nice Rhys! Im sure this script will be of use some people. You should also add it to the Scripts and Functions section... _________________
HTH...
 |
|
| Back to top |
|
 |
Rhys
Joined: 17 Apr 2007 Posts: 758 Location: Florida
|
Posted: Mon Sep 17, 2007 10:05 pm Post subject: |
|
|
| aCkRiTe wrote: | | Very nice Rhys! Im sure this script will be of use some people. You should also add it to the Scripts and Functions section... |
Thanks, I'm still learning... Here's my post in S&F. _________________ [Join IRC!]
 |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|