right-click 
> > menus at the same time, but then I can't close them, not even by
> focusing 
> > them and pressing ESC.
> 
> A similar symptom with Note.OpenMenu too.

I have uploaded another version PowerProTray.zip which fixes the 
icon right click menu issue on my tests.  (I could not duplicate the 
note.openmenu issue).

http://powerpro.webeddie.com/download/powerprotray.zip

If you have any problems with this one, please upload the 
pprotray.log.  Also, after experiencing the problems, could you 
please run this command from a button or powerPro command line, and 
post the resulting trayicons.txt file as well.



The exe in this latest upload contains the code for the new  
trayicon command which has been expanded to take advantage of the 
more reliable tray support.  Here is a preview of the help from the 
upcoming beta.


Once you have installed tray support and rebooted your machine, you 
can execute a tray icon command with
Command *TrayIcon
Acton   command
Parameters      caption_list (id)

Or use the new syntax:  trayicon.command("caption_list (id)")

Here "command" is one of left, leftdouble, right, rightdouble, hide, 
show, or dump. The hide command hides the icon from PowerPro and the 
system tray; show re-shows it.  You can still send commands to 
hidden icons.  (You cannot use show in Win Me or earlier).   

 The caption_list is used to pick out the tray icon window to work 
with, and the id is optional and indicates which tray icon to use 
for that window:  the id is only needed if the window controls more 
than one tray icon.

Tray icon windows use hidden, special windows.  How can you find out 
the windows corresponding to each of your tray icons?  You use the 
trayicon.dump command for this.  Execute the command trayicon.dump 
(eg from a button) after you have installed tray support and 
PowerPro will produce a list of all tray icons in a file called 
trayicons.txt in your PowerPro folder.  Each item in the list 
contains the following information:

exe - the exename of the tray icon window
id - the id number of the tray icon for this window
fl - three flags: h means hidden, s mean shared icon, u means 
Unicode (you can ignore these)
class - the window class for the tray icon window
cap - the window caption for the tray icon window
tt - the tooltip for the tray icon window:  to help you identify 
which tray icon this window is for

Here is a sample line produced by trayicon.dump:

exe=ccApp id=200  fl=...  class=NAVAP Wnd Class  cap=Norton 
AntiVirus  tt=Norton Running

indicates a tray icon from program ccApp.exe, id is 200, window 
class is NAVAP Wnd Class, window caption is Norton Anti-virus, 
tooltip is Norton Running.  

As long as it is a unique name, the exename is the best item to use 
in the caption list for the TrayIcon command.  For example,

Command *TrayIcon
Acton   left
Parameters      ccApp(200)

would left click the icon from the above sample.  The (200) is only 
needed if there are other tray icons from ccApp in the list.  
However, sometimes, tray icons use a common exe name like explorer 
or rundll32.  If the id is also duplicated,  another approach is 
needed.  In this case, you can try the class or the caption, such as 
(using the new syntax)

trayicon.command("c=NAVAP Wnd Class (200)")
trayicon.command("Norton AntiVirus (200)")

However, note that some tray icon programs change their class or 
caption each time they run; you should tray the trayicon.dump 
commands after a reboot to see if this is happening for tray icon if 
the class or caption approach fails.








Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to