AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Toaster Popups

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List
View previous topic :: View next topic  
Author Message
Bartimus



Joined: 10 Nov 2005
Posts: 127
Location: Texas

PostPosted: Fri Sep 14, 2007 1:33 am    Post subject: Toaster Popups Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
Mustang



Joined: 17 May 2007
Posts: 420
Location: England

PostPosted: Fri Sep 14, 2007 1:56 am    Post subject: Reply with quote

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
View user's profile Send private message
aCkRiTe



Joined: 21 Jul 2006
Posts: 552

PostPosted: Fri Sep 14, 2007 3:55 am    Post subject: Reply with quote

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
View user's profile Send private message
haichen



Joined: 05 Feb 2007
Posts: 156
Location: Osnabrück, Germany

PostPosted: Fri Sep 14, 2007 11:09 am    Post subject: Reply with quote

Try also InfoboxZ from IsNull. Very nice!
Back to top
View user's profile Send private message
Rhys



Joined: 17 Apr 2007
Posts: 758
Location: Florida

PostPosted: Mon Sep 17, 2007 5:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
aCkRiTe



Joined: 21 Jul 2006
Posts: 552

PostPosted: Mon Sep 17, 2007 6:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
Rhys



Joined: 17 Apr 2007
Posts: 758
Location: Florida

PostPosted: Mon Sep 17, 2007 10:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group