nago Posted March 20, 2008 Posted March 20, 2008 Hello! The default behaviour for the Tray item is to pause when clicked-- can this be disabled? I don't mind having "Pause" and "Exit" as menu items, but I would like to stop the icon from being paused whenever clicked. I'd like to add some menu items of my own in here, but I'd like to do so without halting the program. So, I suppose I'd use TrayCreateItem and TrayItemSetOnEvent. I see that I can use 'break' to stop the user from being able to pause/exit my script, but that's certainly not my goal. Hilfe? Thanks!
rawrr Posted March 20, 2008 Posted March 20, 2008 (edited) Hello!The default behaviour for the Tray item is to pause when clicked-- can this be disabled? I don't mind having "Pause" and "Exit" as menu items, but I would like to stop the icon from being paused whenever clicked. I'd like to add some menu items of my own in here, but I'd like to do so without halting the program.So, I suppose I'd use TrayCreateItem and TrayItemSetOnEvent.I see that I can use 'break' to stop the user from being able to pause/exit my script, but that's certainly not my goal.Hilfe? Thanks!Swifty beat me to it.. Nvm =] Edited March 20, 2008 by rawrr
nago Posted March 20, 2008 Author Posted March 20, 2008 (edited) Thank you! Well, that option removes pause and exit from the tray, but I suppose I can add my own. New question, though. Opt("TrayMenuMode", 1); Stop tray icon from automatically pausing script $g_TrayMenuUpdate = TrayCreateItem("Check For Updates") TrayItemSetOnEvent($g_TrayMenuUpdate,'fCheckForUpgrade') Doesn't appear to call the fCheckForUpgrade function when I click the menu in the tray. I'm sure I'm missing something obvious. It's been a month or two since I fiddled with autoit and I'm having a hard time making sense of the docs... EDIT: Yup! Something Obvious. Missed an Option that allows OnEvent things from the Tray. Edited March 20, 2008 by nago
AdmiralAlkex Posted March 21, 2008 Posted March 21, 2008 (edited) To stop the pausing when clicking it you should use Opt("TrayAutoPause",0) Edited March 21, 2008 by TzarAlkex .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface
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