AutoHotkey Community

It is currently May 27th, 2012, 12:55 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 258 posts ]  Go to page Previous  1 ... 4, 5, 6, 7, 8, 9, 10 ... 18  Next
Author Message
 Post subject:
PostPosted: December 22nd, 2009, 12:59 am 
Offline

Joined: May 23rd, 2009, 4:48 am
Posts: 363
Location: north bay, california
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 27th, 2009, 4:41 pm 
Offline

Joined: August 10th, 2009, 8:31 pm
Posts: 20
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 :D

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?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 27th, 2009, 9:26 pm 
Offline

Joined: May 23rd, 2009, 4:48 am
Posts: 363
Location: north bay, california
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 29th, 2009, 12:07 pm 
Offline

Joined: May 27th, 2007, 9:41 am
Posts: 4999
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/viewtop ... 422#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"

_________________
AHK FAQ
TF : Text files & strings lib, TF Forum


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 30th, 2009, 5:22 am 
Offline

Joined: May 23rd, 2009, 4:48 am
Posts: 363
Location: north bay, california
thanks man, never saw those, htmltext looks perfect i'll play with it

- gwarble


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Adding Image
PostPosted: December 31st, 2009, 1:41 pm 
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 :)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 31st, 2009, 1:45 pm 
Offline

Joined: May 27th, 2007, 9:41 am
Posts: 4999
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.

_________________
AHK FAQ
TF : Text files & strings lib, TF Forum


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 31st, 2009, 3:42 pm 
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


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 31st, 2009, 4:48 pm 
Hmm.
this works:
Code:
image = %A_ScriptDir%\%A_ScriptName%
var:=Notify("TEST TEST","",2,"TC=Red TS=8 AX=off",image)


Any other way ?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 31st, 2009, 5:20 pm 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7502
Location: Australia
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)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 31st, 2009, 5:52 pm 
Offline

Joined: May 23rd, 2009, 4:48 am
Posts: 363
Location: north bay, california
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 31st, 2009, 10:23 pm 
Thanks all.. I'm getting there slowly :)

Do any of the AHK compliers support multiple icons within the exe ??
Cheers


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 31st, 2009, 11:00 pm 
Offline

Joined: May 23rd, 2009, 4:48 am
Posts: 363
Location: north bay, california
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 31st, 2009, 11:01 pm 
Thanks gwarble
Will do :)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 4th, 2010, 2:15 pm 
Offline

Joined: December 20th, 2009, 10:58 am
Posts: 15
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 ??


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 258 posts ]  Go to page Previous  1 ... 4, 5, 6, 7, 8, 9, 10 ... 18  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Cristi® and 10 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group