brucexs wrote:

>> 1)How i customize the context menu of the tray icon when i right 
> click 
>> mouse on it? My bar have only checked "show buttons on tray icons" 
>> without any entry list items.
> 
> PowerPro always uses just transmits any mouse clicks on tray icons to 
> the underlying program; I don't think you can customerize this 
> behavior.

As Bruce says, I can't customize the context menu of the tray icon, 
however, I find it handy to add a hook for the middle mouse button and 
process it in a script.

Essentially the last button of my active icon bar is defined as

(Watch for folding lines)

[2]
id = template
; left/right single/double click executes an icon's own click
; middle clicks are trapped and can be processed with 
;[EMAIL PROTECTED]
LCmd1 = .OnMultiClick(?'trayicon.left("!"++lastactivehandle++" 
("++lasttrayid++")")',?'trayicon.leftdouble("!"++lastactivehandle++" 
("++lasttrayid++")")',"","")
MCmd1 = .OnMultiClick("[EMAIL PROTECTED]
("++lastactivehandle++","++lasttrayid++")","","")
RCmd1 = .OnMultiClick(?'trayicon.right("!"++lastactivehandle++" 
("++lasttrayid++")")',?'trayicon.rightdouble("!"++lastactivehandle++" 
("++lasttrayid++")")',"","")

You can find OnMultiClick.powerpro in the files download section.

My [EMAIL PROTECTED] looks like:
Note: the first part of the script generates a tooltip string that
is shown by the info label of another button in my active icon bar

@TrayMiddleClick
; ----------------------------------------------------------------------
; HOW TO ADD NEW ACTIONS:
; middle click MyTray tray icon to display if/else parameters in debug 
; window
; modify string in 1st quit statement below adding your help tooltip
; modify if/else statement below
; run [EMAIL PROTECTED]
; ----------------------------------------------------------------------

; tooltip lists handled applications, add yours here...
if(""==arg(1))
  quit("/  middle click handles app1, app2, app3...")
win.debug("handle <"++arg(1)++"> exename <"++win.exename(arg(1))++"> 
caption <"++win.caption(arg(1))++"> trayID <"++arg(2)++">")
local c=case("lower",win.caption(arg(1)))
local e=case("lower",win.exename(arg(1)))
if( e=="programexe" )do ;; program.exe
  quit( .DoSomethingWithProgramExe() )
;----------------------------------------------
; add your custom action here, template follows
;----------------------------------------------
/*
; you can use 'e' for exename or 'c' for caption
elseif( e=="programexe" )do
  ; you action here, templates:
  ; ; show/min by clicking tray icon (often it's the most reliable way)
  ; trayicon.left("!"++arg(1)++" ("++arg(2)++")")
  ; ; OR  call your own action
  ; [EMAIL PROTECTED](arg(1),arg(2)) ;; tray icon handle, tray icon 
id
*/
; -----------------------------------
; don't forget to change the tooltip!
; -----------------------------------
endif
quit 



------------------------ Yahoo! Groups Sponsor --------------------~--> 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~-> 

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