H5O20H Posted June 27, 2008 Posted June 27, 2008 How to remove orig tray icon and tray menu from an autoit script? Next question,how can i add an option in the tray that does something? Thanks Valik, The Legendary programmer!Will be using that signature for 2 months due to my loss on a bet ):
DaRam Posted June 27, 2008 Posted June 27, 2008 Example from the Help file: #Include <Constants.au3> #NoTrayIcon Opt("TrayMenuMode",1) ; Default tray menu items (Script Paused/Exit) will not be shown. $exititem = TrayCreateItem("Exit") TraySetState() $start = 0 While 1 $msg = TrayGetMsg() If $msg = $exititem Then ExitLoop $diff = TimerDiff($start) If $diff > 1000 Then $num = -Random(0,100,1); negative to use ordinal numbering ToolTip("#icon=" & $num) TraySetIcon("Shell32.dll",$num) $start = TimerInit() EndIF WEnd Exit How to remove orig tray icon and tray menu from an autoit script? Next question,how can i add an option in the tray that does something? Thanks
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