 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
gwarble
Joined: 23 May 2009 Posts: 126 Location: north bay, california
|
Posted: Tue Dec 22, 2009 12:59 am Post subject: |
|
|
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 |
|
 |
yaramorgan
Joined: 10 Aug 2009 Posts: 18
|
Posted: Sun Dec 27, 2009 4:41 pm Post subject: |
|
|
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
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 |
|
 |
gwarble
Joined: 23 May 2009 Posts: 126 Location: north bay, california
|
Posted: Sun Dec 27, 2009 9:26 pm Post subject: |
|
|
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 |
|
 |
hugov
Joined: 27 May 2007 Posts: 2439
|
|
| Back to top |
|
 |
gwarble
Joined: 23 May 2009 Posts: 126 Location: north bay, california
|
Posted: Wed Dec 30, 2009 5:22 am Post subject: |
|
|
thanks man, never saw those, htmltext looks perfect i'll play with it
- gwarble |
|
| Back to top |
|
 |
Tom Guest
|
Posted: Thu Dec 31, 2009 1:41 pm Post subject: Adding Image |
|
|
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  |
|
| Back to top |
|
 |
hugov
Joined: 27 May 2007 Posts: 2439
|
Posted: Thu Dec 31, 2009 1:45 pm Post subject: |
|
|
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 |
|
 |
TOM Guest
|
Posted: Thu Dec 31, 2009 3:42 pm Post subject: |
|
|
Thanks hugov.
( I seem to be saying that a lot )
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
|
Posted: Thu Dec 31, 2009 4:48 pm Post subject: |
|
|
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
|
Posted: Thu Dec 31, 2009 5:20 pm Post subject: |
|
|
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 |
|
 |
gwarble
Joined: 23 May 2009 Posts: 126 Location: north bay, california
|
Posted: Thu Dec 31, 2009 5:52 pm Post subject: |
|
|
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 |
|
 |
TOM Guest
|
Posted: Thu Dec 31, 2009 10:23 pm Post subject: |
|
|
Thanks all.. I'm getting there slowly
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
|
Posted: Thu Dec 31, 2009 11:00 pm Post subject: |
|
|
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 |
|
 |
TOM Guest
|
Posted: Thu Dec 31, 2009 11:01 pm Post subject: |
|
|
Thanks gwarble
Will do  |
|
| Back to top |
|
 |
Tom
Joined: 20 Dec 2009 Posts: 11
|
Posted: Mon Jan 04, 2010 2:15 pm Post subject: |
|
|
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 |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|