Jump to content

show hostname in taskbar or tray


Recommended Posts

this should do

#NoTrayIcon
Opt("TrayMenuMode", 1) ; Default tray menu items (Script Paused/Exit) will not be shown.
Local $exititem = TrayCreateItem("Exit")

TraySetIcon("Shell32.dll", -13) ; IC icon
TraySetToolTip("The name of this computer is " & @ComputerName)
TraySetState()

While 1
    If TrayGetMsg() = $exititem Then Exit
    Sleep(10) ; Idle loop
WEnd
Exit

 

image.jpeg.9f1a974c98e9f77d824b358729b089b0.jpeg Chimp

small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt....

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...