Core Function WinSetTrans

From Sputnik Wiki
Revision as of 12:38, 14 June 2015 by UberFoX (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
WinSetTrans ( <title>, <text>, <transparency> )

Contents

Description

Sets the transparency of a window..

Parameters

Title

The title of the window.

Text

The text of the window to read.

transparency

A number in the range 0 - 255. The larger the number, the more transparent the window will become.

Return Value

Success: Returns 1.

Failure: Returns 0.

Failure: Returns -1 (If the function isn't supported on an OS).

Remarks

See "WinTitleMatchMode" in Opt

Example

Opt("WinTitleMatchMode", 2); // Match substring
WinSetTrans("Notepad", "", 170); // Make Notepad window semi-transparent.
sleep(3000);
WinSetTrans("Notepad", "", 500); // Undo it.
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox