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() v0.44 - multiple tray area notifications
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
gwarble



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

PostPosted: Tue Dec 22, 2009 12:59 am    Post subject: Reply with quote

that would work, except i think you need the label prefix numbers to be 1-25 not 50-79, since the line after the stringreplace is already finding the correct gui number


imho, i'm not sure you would want that hard coded... we could instead put in an action label for right clicking, that could call a script-side subroutine which could either close the notification like you want, or do any other action, like AC= and AT=... which could include an actual context menu or something...

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



Joined: 10 Aug 2009
Posts: 18

PostPosted: Sun Dec 27, 2009 4:41 pm    Post subject: Reply with quote

First and foremost I'd like to thank gwarble for this great function! So far I've used it in a couple of my scripts and it works flawlessly Very Happy

I'm wondering, is it possible to set different fonts for the message line, so on the same line you could have a few words italicized or bolded, while the rest are regular?

I've used the notify function to create a gmail checker, and it would be useful to bold certain parts of the message line (like "subject") while leaving other info set to a regular font weight. Can this be done?
Back to top
View user's profile Send private message
gwarble



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

PostPosted: Sun Dec 27, 2009 9:26 pm    Post subject: Reply with quote

thanks, i'm glad you like it!

no thats not possible at this point... i tried to find a good way to do this but don't know how, some sort of HTML control or RTF control, but the data would have to be sent to the function in some sort of inline fashion (like <b>html</b> or [ b]bbcode[ /b])

if anyone has any ideas how to implement this its a feature i would love also

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



Joined: 27 May 2007
Posts: 2439

PostPosted: Tue Dec 29, 2009 12:07 pm    Post subject: Reply with quote

See HTMLText 1.01 - Write HTML style text to a GUI by tic
http://www.autohotkey.com/forum/topic26860.html

Note the various solutions in that thread such as MsgBoxX http://www.autohotkey.com/forum/viewtopic.php?p=153422#153422

I would make it optional as "extra" and keep the current text icon settings as it is very smooth if you know what I'm saying, the comments in the threads indicate HTML text might be "slower"
_________________
Tut 4 Newbies
TF : Text file & string lib, TF Forum
Back to top
View user's profile Send private message Visit poster's website
gwarble



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

PostPosted: Wed Dec 30, 2009 5:22 am    Post subject: Reply with quote

thanks man, never saw those, htmltext looks perfect i'll play with it

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





PostPosted: Thu Dec 31, 2009 1:41 pm    Post subject: Adding Image Reply with quote

Hi

I'm currently using this:
Code:
var:=Notify("TEST TEST","",2,"TC=Red TS=8 AX=off",166)


Any way to make it use the scripts own image ?

In a GUI, I use:
Code:
Gui, Add, Picture, x26 y50 w35 h35 , %A_ScriptDir%\%A_ScriptName%


Can that be done in notify ?

Thanks Smile
Back to top
hugov



Joined: 27 May 2007
Posts: 2439

PostPosted: Thu Dec 31, 2009 1:45 pm    Post subject: Reply with quote

You can use the image option to include an icon
Code:
Notify([Title,Message,Duration,Options,Image])
which can be a file or a reference to EXE or DLL which has icons in it.
_________________
Tut 4 Newbies
TF : Text file & string lib, TF Forum
Back to top
View user's profile Send private message Visit poster's website
TOM
Guest





PostPosted: Thu Dec 31, 2009 3:42 pm    Post subject: Reply with quote

Thanks hugov.
( I seem to be saying that a lot Smile )

Works..
Code:
var:=Notify("TEST TEST","",2,"TC=Red TS=8 AX=off","test.exe")


Fails..
Code:
var:=Notify("TEST TEST","",2,"TC=Red TS=8 AX=off","%A_ScriptDir%\%A_ScriptName%")


Anyway to make the second option work, so I don't have to specify the file / revision name. ?
Thanks
Back to top
TOM
Guest





PostPosted: Thu Dec 31, 2009 4:48 pm    Post subject: Reply with quote

Hmm.
this works:
Code:
image = %A_ScriptDir%\%A_ScriptName%
var:=Notify("TEST TEST","",2,"TC=Red TS=8 AX=off",image)


Any other way ?
Back to top
Lexikos



Joined: 17 Oct 2006
Posts: 4468
Location: Qld, Australia

PostPosted: Thu Dec 31, 2009 5:20 pm    Post subject: Reply with quote

Read up on expressions...
Code:
var:=Notify("TEST TEST","",2,"TC=Red TS=8 AX=off",A_ScriptDir "\" A_ScriptName)

...then read up on built-in variables.
Code:
var:=Notify("TEST TEST","",2,"TC=Red TS=8 AX=off",A_ScriptFullPath)
Back to top
View user's profile Send private message Visit poster's website
gwarble



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

PostPosted: Thu Dec 31, 2009 5:52 pm    Post subject: Reply with quote

thanks for helping guide him hugov and lexikos...

on a related Notify() specific note, there's also an option IN to use a different icon number from the .exe/resource (ie IN=2 to use icon2)

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





PostPosted: Thu Dec 31, 2009 10:23 pm    Post subject: Reply with quote

Thanks all.. I'm getting there slowly Smile

Do any of the AHK compliers support multiple icons within the exe ??
Cheers
Back to top
gwarble



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

PostPosted: Thu Dec 31, 2009 11:00 pm    Post subject: Reply with quote

hey tom

search the forum for steps to use ResHacker to modify the AutoHotkeySC.bin icons before compiling

thats the only way i know how

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





PostPosted: Thu Dec 31, 2009 11:01 pm    Post subject: Reply with quote

Thanks gwarble
Will do Smile
Back to top
Tom



Joined: 20 Dec 2009
Posts: 11

PostPosted: Mon Jan 04, 2010 2:15 pm    Post subject: Reply with quote

Hi

I've started to use this:
Code:
Notify("BLAH BLAH","",2,"GC=" BGColour " TC=Red TS=8 MC=Blue MS=10 MW=625 AX=off IN=4",A_ScriptFullPath)

and it works well.. however..

The next notify that is called has the wrong icon:

Code:
Notify("BLAH2 BLAH2","",2,"GC=" BGColour " TC=Red TS=8 AX=off",132)


Instead of "132" I get the previous icon !!
But this only happens if the first notify is called... if it hasn't been called then I get shell icon 132.

Any ideas ??
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9  Next
Page 7 of 9

 
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