DalkiaKaye Posted October 28, 2008 Share Posted October 28, 2008 I would like to create a little tool that displays as an icon in the tray, and when users go over with the mouse (or click is OK too ) they receive the text that is printed in it (Ip address and hostname). Is there a function which does this ? Link to comment Share on other sites More sharing options...
rasim Posted October 28, 2008 Share Posted October 28, 2008 DalkiaKayeWelcome! Example:#include <Constants.au3> Opt("TrayMenuMode", 1) TraySetClick(16) TraySetToolTip("IP-Adress: " & @IPAddress1 & @LF & _ "Localhost: 127.0.0.1") $ExitItem = TrayCreateItem("Exit") While 1 $tMsg = TrayGetMsg() Switch $tMsg Case $TRAY_EVENT_PRIMARYUP MsgBox(64, "Info", "IP-Adress: " & @IPAddress1 & @LF & _ "Localhost: 127.0.0.1") Case $ExitItem Exit EndSwitch WEnd Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now