sambuddy Posted August 2, 2009 Share Posted August 2, 2009 (edited) Hello All, I have two questions i hope you can help me with. My first question is when i run the code below, an icon is displayed in the system tray. Now if i do a right mouse click on the icon in the tray, the script will pause until i exit the menu (this can be seen by the console output stopping) BUT.....Shouldn't the Opt("TrayAutoPause",0) ; stop this from happening? (i want the script to continue UNTIL i select "Pause" in the menu) My second question is, when the script starts, the tooltip is displayed with the info in it that i want....but the tooltip is only displayed WHEN the script starts, i thought it was meant to be displayed when the icon was in focus. When the script starts the tool tip shows the following "STB= 5 C:\TrayItems.au3" BUT once it has disappeared and i hover my mouse over the icon i get the following "TrayItems.au3" What am i missing? Thanks >_< #Include <Constants.au3> $stb=5 Opt("TrayAutoPause",0) ; Script will not be paused when clicking the tray icon. TrayTip("STB="& $stb,@ScriptFullPath,30,1);in the tooltip, tell us what stb is running and what script TrayCreateItem("Script Details:") TrayCreateItem("STB="& $stb) TrayCreateItem(@ScriptFullPath) dim $x=0 While 1 $msg = TrayGetMsg() ConsoleWrite("message = " & $msg & ": count = " & $x & @CRLF) $x=$x+1 WEnd Exit Edited August 2, 2009 by sambuddy Link to comment Share on other sites More sharing options...
sambuddy Posted August 5, 2009 Author Share Posted August 5, 2009 <bump> 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