SYT.Add Icon To

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > OS and Software > Systray-Icon Commands >

SYT.Add Icon To

MiniRobotLanguage (MRL)

 

SYT.Add Own Icon

Add a Tooltip-Icon to your Script and bind it to another window-handle

 

 

Intention

 

This Command will Add an Icon in the Systray for your running Script.

The Icon will be registered to another window-Handle.

This way you can have multiple Icons within your Script.

 

Example:

 

$$ICA=?path\Blue.ico

' Locate any other window

STW.ct|ThunderRT6FormDC|Screenshot

' Get the Window-Handle

$$MYW=#hwn#

' Bind the Icon

SYT.ai|$$MYW|$$ICA

 

The Icon will automatically disappear when your Script ends. You can only bind Icons to valid Window-Handles.

 

 

 

Syntax

 

SYT.Add Icon To|P1|P2

 

 

Parameter Explanation

 

P1 - [VAR with] Window-Handle of the target Window. This can be any valid Window-Handle.

P2 - Filename of the Icon (.ico)

 

 

 

Example

 

'*****************************************************

' EXAMPLE 1: 

'*****************************************************

'

$$ICA=?path\Blue.ico

$$ICB=?path\Red.ico

$$ICC=?path\Green.ico

$$ICD=?path\Yellow.ico

SYT.oi|$$ICA

' Need to localize an Application window here

STW.c|explorer

$$MYW=#hwn#

SYT.ai|$$MYW|$$ICB

PAU.5

SYT.co|$$ICC

PAU.5

SYT.ca|$$MYW|$$ICD

SYT.hi|$$MYW|$$RES

DBP.Has Icon: $$RES

SYT.hi|#cbw#|$$RES

DBP.Own Icon: $$RES

SYT.hi|6554616|$$RES

DBP.Own Icon: $$RES

PAU.5

SYT.ot|Hallo Tooltip.

SYT.tp|$$MYW|Hallo App.

PAU.1

MBT.Hallo

ENR.

 

 

 

Remarks

 

-

 

 

Limitations:

 

-

 

 

See also: