Sign in to follow this  
Followers 0
friends

Tray Icon info ?

6 posts in this topic

I wonder if we can do the "tray tip" like shown in below picture ?

If so... what is the syntax and mind to show an example ?

Thanks

Share this post


Link to post
Share on other sites



I wonder if we can do the "tray tip" like shown in below picture ?

If so... what is the syntax and mind to show an example ?

Thanks

<{POST_SNAPBACK}>

You have to use the GUICreateEx function to set the tip info to your GUI :ph34r:

Share this post


Link to post
Share on other sites

TrayTip

--------------------------------------------------------------------------------

Displays a balloon tip from the AuotIt Icon. (2000/XP only)

TrayTip ( "title", "text", timeout [, option])

Parameters

title Text appears in bold at the top of the balloon tip. (63 characters maximum)

text Message the balloon tip will display. (255 characters maximum)

timeout A rough estimate of the time the balloon tip should be displayed. (Windows has a min and max of about 10-30 seconds but does not always honor a time in that range.)

option [optional] See Remarks. 0=No icon (default),

1=Info icon, 2=Warning icon, 3=Error icon

Return Value

None.

Remarks

TrayTip works for only Windows 2000/XP or better.

A Tray tip will close if the AutoIt tray icon disappears. Consequently, the TrayTip may not appear if AutoItSetOption("TrayIconHide", 1) is set or if the user has disabled balloon tips via registry settings!

Windows XP usually plays a sound when displaying a balloon tip. This sound can be disabled by adding 16 to the options parameter or by setting an empty title.

To clear a balloon tip that is being displayed, call another tip with an empty text string (and any title).

Related

MsgBox, ToolTip, TrayIconHide (Option)

Example

TrayTip("I'm a title", "I'm the message", 5, 1)
MsgBox(4096,"", "Press OK to see another tip.")
TrayTip("clears any tray tip","",0)
TrayTip("", "A different tray tip.", 5)
Sleep(5000)

Share this post


Link to post
Share on other sites

You have to use the GUICreateEx function to set the tip info to your GUI :(

<{POST_SNAPBACK}>

Thanks JPM.... i'll try that out !

I know you're one of the Hyper-Active AutoIT users in this forum.... :ph34r:

Share this post


Link to post
Share on other sites

You have to use the GUICreateEx function to set the tip info to your GUI :(

<{POST_SNAPBACK}>

hmm.... mind to show me a simple example ?

I wonder how after a deep thinking of it.... :ph34r:

thanks

Share this post


Link to post
Share on other sites

@jpm, I am having a hard time finding that, too. Here is the info from the helpfile on guicreateex:

GUICreateEx ( helpfile [,background [,iconfile]] )

Who else would I be?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0