<< Click to Display Table of Contents >> Navigation: 3. Script Language > OS and Software > Systray-Icon Commands > SYT.Has Icon |
MiniRobotLanguage (MRL)
SYT.Has Icon
Verify if a Window-Handle has an Icon from our Script.
Intention
This Command will just check the internal Data to find out if an Window Handle has been used to bind an Icon to it from our Script.
The result will be zero if there is no Icon, or if the Window-Handle is invalid.
If there is a valid Icon under the given Handle, the result will be >0.
Example:
SYT.hi|6554616|$$RES
DBP.Own Icon: $$RES
Syntax
SYT.Has Icon|P1|P2
Parameter Explanation
P1 - [VAR with] valid Window-Handle
P2 - Variable that will take the result. You can also specify "-" to have the result on TOS.
SYT.hi|6554616|$$RES
SYT.hi|6554616|-
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:
•