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 

Notify() - multiple easy tray area notifications
Goto page Previous  1, 2, 3 ... 8, 9, 10 ... 13, 14, 15  Next
 
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Thu Feb 11, 2010 2:43 pm    Post subject: Reply with quote

Hello. Smile

How do I close all notifications, without knowing which are opened?
Back to top
segalion
Guest





PostPosted: Fri Feb 12, 2010 8:46 am    Post subject: another sugestion Reply with quote

another sugestion:

An option to modify a notify that exist if you know the notify_id.
Back to top
gwarble



Joined: 23 May 2009
Posts: 234
Location: north bay, california

PostPosted: Wed Mar 17, 2010 2:45 am    Post subject: Reply with quote

great suggestions... i'm hoping to have free time again to be able to implement them soon... i'll go thru the thread and add everything i can, and try to clean up the code as i go since its kind of a mess right now...

segalion: how about an aux function like Notify_Mod(...) for that last one

Guest: you should always know what notify's are open, because as they open, Notify() returns the ID used later to close it... so if you are going to want to close it later, save the ID when you call it as so:
NotifyIDVariable := Notify()

i don't think there is any harm in "wait"-ing for a notify that is already closed... unless you have some other window with that same title...


thanks to everyone for posting their findings and feedback

- gwarble
Back to top
View user's profile Send private message
gwarble



Joined: 23 May 2009
Posts: 234
Location: north bay, california

PostPosted: Sun Aug 01, 2010 7:29 pm    Post subject: Reply with quote

a couple quick updates...

Notify("","",Dur,"Wait")

now works for all open notifications from the calling script, without a final parameter for the NotifyID

also, using a duration of "-0" (must be in quotes) will now work for a notification that does an exitApp, while being a permanent/flashing notification

sorry, but i was unable to easily add inline HTML text formatting... ShowHtmlDialog is the best approach i've found but i don't have it working yet

and sorry segalion, i still haven't been able to diagnose your bug from long ago... i need to clean up the code a bunch still and figure out whats going on

enjoy v.45
- gwarble
Back to top
View user's profile Send private message
Tuncay



Joined: 07 Nov 2006
Posts: 1886
Location: Germany

PostPosted: Tue Sep 14, 2010 11:39 pm    Post subject: Reply with quote

Hi gwarble, this looks good. I am adding this into my collection (if it is ok^^). But I have some critism:

The script is not really stdlib conform (in my terms), because it uses labels / subroutines. Label names are unique identifier at global scope. Even if they are not callable from outside of the function. Its just a question of definition what stdlib conform is meaning.


Edit: Never mind about my request and test script!!! Deleted all following this line from this posting.
_________________
{1:"ahkstdlib", 2:"my libs", 3:"my apps", 4:"my license"}
--> Don't feed the troll! <--
Back to top
View user's profile Send private message Send e-mail Visit poster's website
gwarble



Joined: 23 May 2009
Posts: 234
Location: north bay, california

PostPosted: Wed Sep 15, 2010 12:14 am    Post subject: Reply with quote

aw bummer, i didn't get to see the request and test script before they were deleted... but anyway

thanks and i'm glad you like it... do with it as you wish... i'm definitely no real programmer and there are probably lots of ways to improve it... but i use it almost every day, usually hundreds of times, in at least 4 different scripts running in my shop and at home

yeah i agree with you about it not really being stdlib compliant (in the purest sense) but i don't know how to get all the functionality without using some of the labels...

of course i'm always appreciative of suggestions on features and CODE...

i think the best solution is to not use ahk gui's but instead use CreateWindow dllcalls... but i havent had a chance to start rewriting it yet, nor have i tried such dllcalls

thanks again
- gwarble

ah yes... the stdlib assembly you've done... please do add it that would be sweet, i'm all for such a compilation
Back to top
View user's profile Send private message
zengjia



Joined: 03 Aug 2009
Posts: 21

PostPosted: Fri Sep 17, 2010 7:54 am    Post subject: Reply with quote

static GT := "Off" ; Gui Transparency

this really confused me,
I considered that means GT=on or GT=off. Confused
Back to top
View user's profile Send private message
Tuncay



Joined: 07 Nov 2006
Posts: 1886
Location: Germany

PostPosted: Fri Sep 17, 2010 8:09 am    Post subject: Reply with quote

gwarble wrote:
aw bummer, i didn't get to see the request and test script before they were deleted... but anyway

Oh, sorry. This was one or two requests about features already implemented. So I deleted it. I saw it after posting. No worry about that.
_________________
{1:"ahkstdlib", 2:"my libs", 3:"my apps", 4:"my license"}
--> Don't feed the troll! <--
Back to top
View user's profile Send private message Send e-mail Visit poster's website
gwarble



Joined: 23 May 2009
Posts: 234
Location: north bay, california

PostPosted: Fri Sep 17, 2010 11:11 am    Post subject: Reply with quote

zengjia:
Quote:
static GT := "Off" ; Gui Transparency
this really confused me, I considered that means GT=on or GT=off. Confused


nope... sorry my documentation is so poor... but it corresponds to the Winset, Transparency value... so GT=Off, GT=10, GT=250 can all be used...

- gwarble

Code:
Makes a window semi-transparent. Specify for N a number between 0 and 255 to indicate the degree of transparency: 0 makes the window invisible while 255 makes it opaque. Transparency may be turned off completely for a window by specifying the word OFF. This is different than specifying 255 because it may improve performance and reduce usage of system resources.
Back to top
View user's profile Send private message
zengjia



Joined: 03 Aug 2009
Posts: 21

PostPosted: Fri Sep 17, 2010 3:20 pm    Post subject: Reply with quote

gwarble wrote:

nope... sorry my documentation is so poor... but it corresponds to the Winset, Transparency value... so GT=Off, GT=10, GT=250 can all be used...
- gwarble



I got it, and I didn't mean the documentation is poor.
Your script is great, I like it.
Thank you a lot! Very Happy
Back to top
View user's profile Send private message
dysmas



Joined: 28 Dec 2010
Posts: 63
Location: France

PostPosted: Sun Feb 06, 2011 9:54 am    Post subject: Reply with quote

Hello, Gwarble, thanks a lot for this script, I like it. I will use it for Unichars.
I would like to get the documentation, but the link in the first post seems to be dead (it goes to : http://custom404error.com/). Could you update the link ?
Back to top
View user's profile Send private message
SoLong&Thx4AllTheFish



Joined: 27 May 2007
Posts: 4999

PostPosted: Sun Feb 06, 2011 10:19 am    Post subject: Reply with quote

@gwarble: you could/should move your ahk projects to www.autohotkey.net, it is free and easy http://www.autohotkey.com/forum/viewtopic.php?t=36756
_________________
AHK Wiki FAQ
TF : Text files & strings lib, TF Forum
Back to top
View user's profile Send private message
fragman



Joined: 13 Oct 2009
Posts: 1199

PostPosted: Mon Feb 07, 2011 1:21 pm    Post subject: Reply with quote

This is quite a nice script...Maybe I'll add support for progress bars sometime.
Back to top
View user's profile Send private message
dysmas



Joined: 28 Dec 2010
Posts: 63
Location: France

PostPosted: Mon Feb 07, 2011 5:59 pm    Post subject: Reply with quote

Suggestion : the taskbar button is not desired for a notification, I think. It is possible to prevent it to appear by adding two lines at line 102 :
They must be placed before the first call to Gui %GN% and Gui %GN2%

Code:
Gui, %GN%:+owner
Gui, %GN2%:+owner

Gui, %GN%:-Caption +ToolWindow +AlwaysOnTop -Border
Gui, %GN%:Color, %GC%
Gui, %GN%:Font, w%TW% s%TS% c%TC%, %TF%
Back to top
View user's profile Send private message
SoLong&Thx4AllTheFish



Joined: 27 May 2007
Posts: 4999

PostPosted: Mon Feb 07, 2011 10:04 pm    Post subject: Reply with quote

dysmas wrote:
Suggestion : the taskbar button is not desired for a notification, I think.
Which OS and which ahk version? I don't get taskbar buttons, it would indeed ruin it and I would never use it, are you sure you are using it right?
_________________
AHK Wiki FAQ
TF : Text files & strings lib, TF Forum
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page Previous  1, 2, 3 ... 8, 9, 10 ... 13, 14, 15  Next
Page 9 of 15

 
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