Window.SetMask

Window.SetMask ( 

number  WindowHandle,

string  MaskFile,

boolean FitToWindow = true,

number  TransparentColor = 0 )

Example 1

-- Get the current application's window handle
nHandle = Application.GetWndHandle();

-- Specify the path to use
sMaskFilePath = _SourceFolder .. "\\Masks\\Mask1.jpg";

-- Apply the mask to the window
Window.SetMask(nHandle, sMaskFilePath, true, 0);
 

Applies the "Mask1.jpg" window mask to the current autoplay application.

Example 2

-- Apply the mask.jpg mask to the application window.
Window.SetMask(Application.GetWndHandle(), "Autoplay\\Images\\mask.jpg", true, 0);
 

Applies the "mask.jpg" window mask to the current autoplay application.

See also:  Related Actions