Window Operations

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > Window Operations >

Window Operations

HWI. - Hide Window

Previous Top Next


MiniRobotLanguage (MRL)

 

HWI. Command

Hide Window or unhide Window using Transparency

 

 

Intention

 

You want to hide your Setup-Program from the user while installation?

HWI. can make windows invisible while you can still click all of their buttons!

HWI. can also make Windows transparent, that you can see through these windows.

 

This command can make Windows transparent or invisible.

It can also reverse that effect.

It can also make Windows from any applications that are already transparent, invisible or opaque.

 

Examples for usage:

 

' make last localized Topwindow get invisible

HWI.0

 

' make last localized Topwindow get opaque

HWI.255

 

' make last localized Topwindow half transparent

HWI.128

 

' make TopWindow with Handle $$HWN half transparent

HWI.125|$$HWN

 

This command can also be used to make windows appear softly from

invisibility ("blend-in effect").

 

 

 

 

Syntax

 

 

HWI.[P1][|P2]

 

 

Parameter Explanation

 

P1 - numerical Parameter 0-255.

         0 - Window is completely invisible

      255 - Window is opaque (completely visible)

      All values between make the window more or less transparent.

 

P2 - (Optional) If given it is a Handle from a Top-Window.

          If omitted, the last localized Top-Window is used.

          This command works only with Top-Windows, if you want to make

           Child-Windows, Buttons etc. invisible, use the SWS.-command instead.

 

 

 

Example

 

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

' EXAMPLE : HWI

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

STW.ct|#32770|Sample App

' Blend a window "in" slowly

FOR.$$CNT|0|255

HWI.$$CNT

PAU.0.1

NEXT

 

 

 

Remarks

 

-

 

 

Limitations:

 

Requires Windows XP or higher.

This command works only with Top-Windows, if you want to make

Child-Windows, Buttons etc. invisible, use the SWS.-command instead.

 

 

 

See also:

 

    !. STW. - Description

    1.8. Selecting the Application (Topwindow)

    SWS. - Set Window State