sjorrel Posted February 28, 2006 Share Posted February 28, 2006 For the output of a small script I've been working on, I'd like it to show a graph in the system tray that gets updated periodically. Is there is a simple way of building up a such system tray icon from within autoit? Link to comment Share on other sites More sharing options...
Lord_Doominik Posted February 28, 2006 Share Posted February 28, 2006 (edited) http://www.microsoft.com/germany/msdn/libr...ngenNutzen.mspxtry this... evantually there are objects for autoit, too... but i think .NET is enaugh... that works with autoit aswell... Edited February 28, 2006 by Lord_Doominik Link to comment Share on other sites More sharing options...
flyingboz Posted March 1, 2006 Share Posted March 1, 2006 (edited) TrayIcon() functions are supported (at least in the current betas) -- if you can generate your icon, you can display it in the systray. TraySetIcon() Edited March 1, 2006 by flyingboz Reading the help file before you post... Not only will it make you look smarter, it will make you smarter. Link to comment Share on other sites More sharing options...
nfwu Posted March 1, 2006 Share Posted March 1, 2006 This may help you render the ICO files:http://www.daubnet.com/formats/ICO.html TwitterOut of date stuff:Scripts: Sudoku Solver | Webserver | 3D library (Pure AutoIt) | Wood's GadgetsUDFs: _WoodUniqueID() | _DialogEditIni() | _Console*() | _GetIPConfigData() | _URLEncode/Decode() Link to comment Share on other sites More sharing options...
Lord_Doominik Posted March 1, 2006 Share Posted March 1, 2006 oh... ok, don't saw, that they are already inplemented ^^... Link to comment Share on other sites More sharing options...
CyberSlug Posted March 1, 2006 Share Posted March 1, 2006 I personally use IconEdit32 for creating/editing simple icons, and I use @icon sushi for adding/extracting icons to/from a single icon library file.Fake TaskManger tray icon example:#Include <Constants.au3> #NoTrayIcon;Hide the other AutoIt tray icon Opt("TrayMenuMode",1); Default tray menu items (Script Paused/Exit) will not be shown. $exititem = TrayCreateItem("Exit") TraySetState() $start = 0 While 1 If TrayGetMsg() = $exititem Then ExitLoop $diff = TimerDiff($start) If $diff > 1000 Then TraySetIcon("taskmgr.exe",Random(4, 14)) $start = TimerInit() EndIf WEnd Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
BigDaddyO Posted March 1, 2006 Share Posted March 1, 2006 I personally use IconEdit32 for creating/editing simple icons, and I use @icon sushi for adding/extracting icons to/from a single icon library file. Fake TaskManger tray icon example: #Include <Constants.au3> #NoTrayIcon;Hide the other AutoIt tray icon Opt("TrayMenuMode",1); Default tray menu items (Script Paused/Exit) will not be shown. $exititem = TrayCreateItem("Exit") TraySetState() $start = 0 While 1 If TrayGetMsg() = $exititem Then ExitLoop $diff = TimerDiff($start) If $diff > 1000 Then TraySetIcon("taskmgr.exe",Random(4, 14)) $start = TimerInit() EndIf WEnd Hey CyberSlug, I was just playing with that @Icon Sushi and it's really neat but now I have another question for you as a Developer. Is there any way for me to compile the AutoIT script using a .icl file instead of .ico? I tried it but it gave me an error. It would be really neet to be able to do this so I would not have to FileInstall a seperate .icl file, I would just reference the @ScriptName with the IconID that I want. Thanks, Mike Link to comment Share on other sites More sharing options...
CyberSlug Posted March 1, 2006 Share Posted March 1, 2006 ... Is there any way for me to compile the AutoIT script using a .icl file instead of .ico? I tried it but it gave me an error. It would be really neet to be able to do this so I would not have to FileInstall a seperate .icl file....I don't have anything to do with the Aut2Exe compiler, and I ended having to FileInstall an .icl to @TempDir for one of my projects. Jon has been updating Aut2Exe, so I'll check with him. Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! 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