Macro Scheduler 15

AddTrayHandler

AddTrayHandler>Name,Event,Subroutine

 

Assigns a subroutine to a system tray event.  Events can be one of:

 

OnClick

OnDblClick

OnMouseDown

OnMouseMove

OnMouseUp

 

See also: AddTrayIcon, DelTrayIcon

Abbreviation: ATH

 

Example

 

AddTrayIcon>%SCRIPT_DIR%\tray.ico,MyTrayIcon,Click Me To Open

AddTrayHandler>MyTrayIcon,OnClick,DoTrayClick

 

...

 

SRT>DoTrayClick

  Show>Dialog1,res

End>DoTrayClick