Sign in to follow this  
Followers 0
boyemillar

Systray

5 posts in this topic

Is there anyway with AutoIt to display an icon in the systray and have something popup when clicked with the system details ie IP address, computer name, current Domain and maybe a few other details...

Share this post


Link to post
Share on other sites



Is there anyway with AutoIt to display an icon in the systray and have something popup when clicked with the system details ie IP address, computer name, current Domain and maybe a few other details...

As long as you have those values then yes.

See the help file>Tray Functions for TrayCreateItem


George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites

modified from the help file:

#Include <Constants.au3>
#NoTrayIcon
Opt("TrayMenuMode",1)
$settingsitem   = TrayCreateMenu("PC Name/IP/Domain")
$pcnameitem    = TrayCreateItem(@ComputerName, $settingsitem)
$ipitem    = TrayCreateItem(@IPAddress1, $settingsitem)
$domainitem    = TrayCreateItem(@LogonDomain, $settingsitem)
TrayCreateItem("")
$aboutitem      = TrayCreateItem("About")
TrayCreateItem("")
$exititem       = TrayCreateItem("Exit")

TraySetState()

While 1
    $msg = TrayGetMsg()
    Select
        Case $msg = 0
            ContinueLoop
        Case $msg = $aboutitem
            Msgbox(64,"about:","AutoIt3-Tray-sample")
        Case $msg = $exititem
            ExitLoop
    EndSelect
WEnd
Exit

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Cheerz for that danwilli is there any way to get it to auto popup on mouseover with those details.

And for the tooltip to not have file extension appear

Edited by boyemillar

Share this post


Link to post
Share on other sites

Cheerz for that danwilli is there any way to get it to auto popup on mouseover with those details.

And for the tooltip to not have file extension appear

You could just add

Traytip(@ComputerName & @CRLF & @IPAddress1 & @CRLF & @LogonDomain, 15, 1)


George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

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