qwertylol Posted April 20, 2007 Share Posted April 20, 2007 I want to use a different icon in the system tray instead of the au3 pic. Also, I want to alternate between a.bmp and b.bmp. also, when I right click on it and I want to have options to choose from @_@a Link to comment Share on other sites More sharing options...
Uten Posted April 20, 2007 Share Posted April 20, 2007 Holly molly, don't you have this link either. It got to be spreading. Wonder if I should file a bug report? Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling Link to comment Share on other sites More sharing options...
EndFunc Posted April 20, 2007 Share Posted April 20, 2007 (edited) I want to use a different icon in the system tray instead of the au3 pic. Also, I want to alternate between a.bmp and b.bmp.also, when I right click on it and I want to have options to choose from @_@aWhen you compile it with an Icon it uses that icon for the system tray icon. but you have to compile it first.Or you can use TraySetIconRead the help file. It has all of that in there. Edited April 20, 2007 by EndFunc EndFuncAutoIt is the shiznit. I love it. Link to comment Share on other sites More sharing options...
qwertylol Posted April 21, 2007 Author Share Posted April 21, 2007 When you compile it with an Icon it uses that icon for the system tray icon. but you have to compile it first. Or you can use TraySetIcon Read the help file. It has all of that in there. TraySetIcon ( [iconfile [, iconID] ) I tried to read the help file, yet it doesn't contain useful information. The sytaxchecker of the editor won't let this go: TraySetIcon ( "a.bmp" ) nor will it let this go TraySecIcon ( "a.ico" ) How exactly do I use TraySetIcon ? Link to comment Share on other sites More sharing options...
Snarg Posted April 21, 2007 Share Posted April 21, 2007 I would assume that to use this: TraySecIcon ( "a.ico" ) The icon file must be in the same directory as the script. Otherwise, include the full path to the icon file. A little reading goes a long way. Post count means nothing. Link to comment Share on other sites More sharing options...
qwertylol Posted April 21, 2007 Author Share Posted April 21, 2007 I would assume that to use this: TraySecIcon ( "a.ico" ) The icon file must be in the same directory as the script. Otherwise, include the full path to the icon file. try for yourself. that doesn't work. Link to comment Share on other sites More sharing options...
xcal Posted April 21, 2007 Share Posted April 21, 2007 (edited) HotKeySet('{esc}', 'icantreadhelpfilestoowell') While 1 TraySetIcon("Shell32.dll",Random(0,100,1)) ; incidentally, trayseticon() works fine with a .ico file, too Sleep(1000) WEnd Func icantreadhelpfilestoowell() Exit EndFunc Edited April 21, 2007 by xcal How To Ask Questions The Smart Way Link to comment Share on other sites More sharing options...
qwertylol Posted April 21, 2007 Author Share Posted April 21, 2007 oh I see, it has to be a dll to be called, and calling the .ico itself doesn't work. how do I creat DLL just to carry .ico I need ? Link to comment Share on other sites More sharing options...
xcal Posted April 21, 2007 Share Posted April 21, 2007 It works fine with .ico files. How To Ask Questions The Smart Way Link to comment Share on other sites More sharing options...
thor918 Posted April 21, 2007 Share Posted April 21, 2007 (edited) oh I see, it has to be a dll to be called, and calling the .ico itself doesn't work. how do I creat DLL just to carry .ico I need ? it works fine over here with icon file, are you sure that the icon is in the same path as the script?? I'm doing this in a script,and it works fine! in this case the icon is in a folder named "icon" fileview "/": traytest.au3 <file> icon <folder> fileview "/icon/": main.ico <file> TraySetIcon("icon/main.ICO") Edited April 21, 2007 by thor918 Link to comment Share on other sites More sharing options...
qwertylol Posted April 21, 2007 Author Share Posted April 21, 2007 c.ico live_duck.au3 see for yourself Link to comment Share on other sites More sharing options...
Helge Posted April 21, 2007 Share Posted April 21, 2007 You keep amazing me...you don't even have TraySetIcon in that script ! Link to comment Share on other sites More sharing options...
qwertylol Posted April 21, 2007 Author Share Posted April 21, 2007 awww.... it turns out that i have been saving the script somewhere else without the .ico in that folder. ok, i am stupid. Next, when the c.ico is live in the tray, where did those black color come from ? I should have sky blue in those areas. What happend there? c.ico live_duck.au3 Link to comment Share on other sites More sharing options...
xcal Posted April 21, 2007 Share Posted April 21, 2007 Was that script supposed to show that icon? Anyway, the blue could just be a representation of transparency in your ico editor. How To Ask Questions The Smart Way 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