Keyword Reference


Indicates that the AutoIt tray icon will not be shown when the script starts.



It is possible to use Opt("TrayIconHide", 1) to remove the AutoIt tray icon but it will still be visible for a second when the script starts. Placing the #NoTrayIcon directive at the top of your script will stop the icon from being shown at startup.

You may still turn the icon back on later in the script using Opt("TrayIconHide", 0)


TrayIconHide (Option)


#include <MsgBoxConstants.au3>


Func Example()
        ; Display a message box about the tray icon appearing once the OK button is selected.
        MsgBox($MB_SYSTEMMODAL, "", "The tray icon will display once OK is selected.")

        ; Display the tray icon.
        Opt("TrayIconHide", 0)

        ; Wait 5 seconds before closing the script.
EndFunc   ;==>Example