SYT.Change Any Icon

<< Click to Display Table of Contents >>

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

SYT.Change Any Icon

MiniRobotLanguage (MRL)

 

SYT.Change Any Icon

Change the Tooltip-Icon of your Script

 

 

Intention

 

This Command will change an Icon in the Systray to another Icon, for your running Script.

It will work for the Icons that have bin bound to another Window-Handle.

It will only work for Icons that have been created using the SYT.-Commands..

 

 

Example:

 

$$ICA=?path\Blue.ico

$$ICB=?path\Red.ico

' Locate any Target-Window

STW.c|iexplore

' Get Handle

$$HWN=#hwn#

' Start with a Blue Icon

SYT.ai|$$HWN|$$ICA

PAU.1

'Change to Red-Icon

SYT.ca|$$HWN|$$ICB

 

The Icon will automatically disappear when your Script ends.

 

 

 

Syntax

 

SYT.Change Any Icon|P1|P2

 

 

Parameter Explanation

 

P1 - [VAR with] valid Window-Handle

P2 - [VAR with] Icon-File

 

 

 

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: