multiple tray icons
#1
Posted 13 July 2007 - 04:20 AM
my request is that someone figure out a way to add more tray icons for a single autoit program or add a function in autoit that can do it.
thanks
#2
Posted 13 July 2007 - 04:44 AM
What do you mean? Please be more specific.I've been searching all over and i cannot seem to figure out how to add new tray icons with autoit. i know right now autoit can only handle one tray icon but i was wondering if it would be possible to add in more than 1. There is a way to do it using a dll but i do not have the dll or know where/how to actually do it.
my request is that someone figure out a way to add more tray icons for a single autoit program or add a function in autoit that can do it.
thanks
Ralph
#4
Posted 13 July 2007 - 01:18 PM
This post describes how I solved the same issue (with assistance from others). WindowWatcher (in my sig) has a complete working example including .RES, .ICO and .BAT support files.I've been searching all over and i cannot seem to figure out how to add new tray icons with autoit. i know right now autoit can only handle one tray icon but i was wondering if it would be possible to add in more than 1. There is a way to do it using a dll but i do not have the dll or know where/how to actually do it.
my request is that someone figure out a way to add more tray icons for a single autoit program or add a function in autoit that can do it.
thanks
#5
Posted 13 July 2007 - 11:24 PM
I want to have multiple tray icons at ONE TIME.
#6
Posted 14 July 2007 - 04:09 AM
#7
Posted 14 July 2007 - 05:52 AM
#8
Posted 14 July 2007 - 06:46 AM
Why flame? Tell us what you're trying to do - there may be other ways to do it.Richard, there is a point if you knew what i was trying to do, but you don't. There's unlimited reasons why you would want more than 1 icon per program. and if you have such a piece of shit computer that additional tray icons lags you, get a job, and buy another one.
#9
Posted 14 July 2007 - 07:48 AM
Instead of getting smart you could try explaining why this would be useful for everybody.Richard, there is a point if you knew what i was trying to do, but you don't. There's unlimited reasons why you would want more than 1 icon per program. and if you have such a piece of shit computer that additional tray icons lags you, get a job, and buy another one.
Since you posted in the feature request Forum you better have a damn good reason or else you are wasting our time ....
Edited by JdeB, 14 July 2007 - 09:44 AM.
Visit the SciTE4AutoIt3 Download page for the latest versions Forum Rules
Live for the present,
Dream of the future,
Learn from the past.
#10
Posted 14 July 2007 - 10:50 AM
Well Icons can be used as control images - say in a toolbar or like the native autoit3 system where it changes tray icons if paused...There's no point in more than one icon per program
Both Autoitwrapper and the Project Manager can include icons to a execute resource - Project Manager has the ability to auto include all icons dropped into a local directory called \Icons in the order Icon_1 Icon_2 ec...
Don't you mean a .icl ( icon library ) - there is a lot of freeware icon editers around to create such files - I use 'AIcon', real nice tool and Aut2exe can include all files with fileinstall too....There is a way to do it using a dll but i do not have the dll or know where/how to actually do it.
kjactive
Edited by kjactive, 14 July 2007 - 11:10 AM.
#11
Posted 14 July 2007 - 04:26 PM
Also, before you go attacking any of the other usuals around here, please recognize that I have a longer fuse than most. By acting courteously, you will receive better replies in the future.
Edited by Richard Robertson, 14 July 2007 - 04:30 PM.
#12
Posted 15 July 2007 - 06:16 AM
I need multiple tray icons because i'm trying to make a program that will take all of the open windows and hide them and place icons associated with each hidden window in the tray. then when you click one of the tray icons, it will unhide the window and that icon will be removed.
#13
Posted 15 July 2007 - 08:00 AM
Now that you have provided a reason, and appear to be friendly, a solution is at hand. The dll you need is included with Windows. Tray icons are handled natively, and require a window to send messages to for events. I don't understand the callback system that has been developed, but I understand you will need it to receive those messages. I suggest a little research of the API, and a custom written dll to include with your script. That will allow you to create the window to handle events, without using any weird workaround in AutoIt.
#14
Posted 15 July 2007 - 10:11 AM
Alternatively, using a compiled script, run the script with the process/taskbar icon to replace as a command-line parameter and in the script, have logic that hides that icon and switches the script icon to be the icon of the replaced process. That way, there's no fiddly DLL stuff, and your single script (running multiple times) is in control of each icon ...I need multiple tray icons because i'm trying to make a program that will take all of the open windows and hide them and place icons associated with each hidden window in the tray. then when you click one of the tray icons, it will unhide the window and that icon will be removed.
#15
Posted 15 July 2007 - 06:53 PM
Richard Robinson, i found a few webpages on how to do it but i got lost in it all and i'm very confused. maybe you can fingure it out?
http://www.codeguru.com/Cpp/COM-Tech/shell...ticle.php/c1335
http://www.programmers-corner.com/tutorial/4
http://www.codeproject.com/shell/trayicons.asp
#16
Posted 15 July 2007 - 08:29 PM
If you don't mind waiting a little while, I can write a dll that will do what you want. Just let me know.
#17
Posted 15 July 2007 - 09:00 PM
Then make 1 .exe that when run "normally" scans the icons in the taskbar and executes itself with acommand line parameter, then when run with that paramter does the icon hide/pretend to be the icon. One exe - what could be neater?MisterBates, you do bring up a good point, i can run multiple programs that will just read from a ini but i think it would be neater to make multiple icons from 1 .exe.
#18
Posted 16 July 2007 - 09:30 PM
#19
Guest_Guest_Holger_*_*
Posted 16 July 2007 - 10:03 PM
Multiple icons for the tray are possible within 1 Autoit-application.
It's a workaround to use with GUI-functions (with GUIRegisterMsg).
I have the most stuff completed here (since a few month (started in april).
It was never finished (to also do all of the unicode jobs).
I think I will publish it the next days for learning/studying so someone can write a better UDF for it.
At the moment it's like my "ModernMenuLib".
So just wait one more day...
Holger
#20
Posted 23 July 2007 - 04:47 AM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users





