05-02-2006, 06:46 PM
in powerpro i can hide trayicons.
is there a way to do the same with qm ?
thanks
is there a way to do the same with qm ?
thanks
hide/replace trayicons
|
05-02-2006, 06:46 PM
in powerpro i can hide trayicons.
is there a way to do the same with qm ? thanks
05-02-2006, 07:18 PM
stupid as i am i guess that there must be somewhere a list of programs registered to tray, otherway shell replacements wouldn't be able to show at least the icons of those programs.
??
05-02-2006, 07:43 PM
int hwnd=child("Notification Area" "ToolbarWindow32" "+Shell_TrayWnd" 0x1) Win XP only. Probably will not work with shell replacements.
05-02-2006, 08:18 PM
that looks promising, but i was unclear.
i want to hide existing trayicons from applications. like trayicon hide hardware (found new hardware) or as worst case : hide qm icon and replace it with an own trayicon which is enabled for l/m/r mouse.
05-02-2006, 08:20 PM
how do i get a list of all avaible trayicons (thwnd) ?
ppro has a dump trayicons command to file: exe=Smax4 id=101 fl=.... class=Afx:400000:0 cap=SoundMax4 tt=SoundMAX Systemsteuerung
05-02-2006, 09:31 PM
this is very very hot !!!
bruce (ppro) must do the same (tt) the last function i ask for is the emum all current visible tray icons. i love you hock:
05-04-2006, 09:27 PM
i get no result :?:
05-04-2006, 09:31 PM
Try to debug EnumTrayIcons. Where it fails?
05-05-2006, 11:52 AM
it was 'Notification Area', in german the title is 'Infobereich'.
now it works.
05-06-2006, 08:58 PM
can you extend EnumTrayIcons to return class ?
and is it possible to send mouse clicks to a trayicon ?
05-06-2006, 09:04 PM
05-06-2006, 09:36 PM
wait 0.5
key ...
05-06-2006, 10:16 PM
there is something wrong with EnumTrayIcons,
qm returns only: Quick Macros Ditto SoundMAX Systemsteuerung Proxomitron default StrokeIt while ppro returns: exe=Smax4 id=101 fl=.... class=Afx:400000:0 cap=SoundMax4 tt=SoundMAX Systemsteuerung ditto is hidden, so its not in the ppro dump. i miss emule and avg.
05-30-2006, 06:52 PM
it seems that when the icon is set to "hide when inactive" and is then "hidden" the icon disappears from the systray completely.
if you go to taskbar properties and reset the behavior, it will reappear.
06-06-2006, 07:54 AM
I'm sorry _JOHN, your message disappeared. You asked how to add tray icon that would show a menu on right click.
Create a function, name it eg "TrayIconManager": Here "My Menu" is menu name. Replace it. Also, replace icon file and tooltip. Open or create function init2. Insert this somewhere in it: Restart QM.
07-14-2006, 02:39 AM
The FindTrayIcon and HideTrayIcon functions only work in XP, eh?
Is there a way to make them work in Windows2000? If not, anybody know where the icon status is buried in the registry? :lol:
07-14-2006, 08:10 AM
Should work on W2000 too, but I didnt test.
07-20-2006, 03:28 AM
Hmmm, unfortunately I can't get it to work on W2000. Maybe I'm doing something wrong. Here's what I'm doing:
1) Copy/create both functions. 2) To try to hide an icon I run this macro: HideTrayIcon "*part of the tool tip text here*" 1 I don't know if this is the whole problem, but the FindTrayIcon function seems to be returning -1 to the HideTrayIcon function. Does it seem like I'm doing something wrong? Thanks. -jimbog P.S. I notice there is a reference to "XP" in the comments for the FindTrayIcon function. But I am in W2000
07-20-2006, 09:03 AM
I updated the code, fixed bugs. Now works on Windows 2000 too.
07-22-2006, 04:40 AM
Thank you very much. I'm not trying to be difficult, but I still can't get it to work. I'm getting this error:
HideTrayIcon: this name already exists. The cursor stops here: def TB_HIDEBUTTON (WM_USER + 4) I tried it without this def but then I get the error that it's not declared
07-22-2006, 10:15 AM
I forgot to say that you have to restart QM after replacing the function.
07-26-2006, 06:01 AM
Works great! Thanks.
05-24-2008, 04:01 PM
Gintaras,
Could you please advise on extending EnumTrayIcons to return tooltips strings in 2.3.0.0 -Unicode. Thanks in advance
Function FindTrayControl
;/ Function FindTrayIcon ;/ Function EnumTrayIcons ;/ Function HideTrayIcon ;/
05-24-2008, 07:04 PM
It is perfect, many thanks.
03-16-2021, 01:38 PM
Hi Gindi,
Unfortunately HideTrayIcon2 does not appear to be working in Windows 10, at least not for me. If it's an easy tweak to the code, that would be greatly appreciated. Jimbog
03-16-2021, 08:46 PM
Does not find the toolbar control that contains tray icons. Because Windows 10 has 2 similar toolbars, and the function finds the wrong.
I updated the code and added new function FindTrayControl. If still fails, before calling HideTrayIcon etc insert code that finds the control and pass its handle to HideTrayIcon (third parameter). |
« Next Oldest | Next Newest »
|