Jump to content
Sign in to follow this  
Roshith

Hyperlink in TrayTip

Recommended Posts

Roshith

Hi,

Is it possible to include a hyperlink in a traytip so that the link opens up when I click on it..

Rgds

Roshith

Share this post


Link to post
Share on other sites
JoHanatCent

Create your own ToolTip.

Here is an example that just looks like a hyperlink:

#include <WindowsConstants.au3>
#include <GUIConstantsEx.au3>
HotKeySet("{ESC}", "OntSnap")
$Gui = GUICreate("tooltip", 140, 80, 1, 1, $WS_POPUP, $WS_EX_TOPMOST)
GUISetBkColor(0xffff00)
$Label = GUICtrlCreateLabel("NotePad.exe", 10, 10, 80, 50)
GUICtrlSetFont(-1, 8, Default, 6, "Comic Sans MS")
GUISetState()
While 1
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
Exit
Case $Label
Run(@WindowsDir & "Notepad.exe", "", @SW_MAXIMIZE)
EndSwitch
Sleep(13)
WEnd
Func OntSnap()
GUIDelete()
Exit 0
EndFunc ;==>OntSnap

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.