Core Function WinSetTrans

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
(Example)
(Example)
Line 36: Line 36:
  
 
<syntaxhighlight lang="sputnik">
 
<syntaxhighlight lang="sputnik">
Opt("WinTitleMatchMode", 3); // Match substring
+
Opt("WinTitleMatchMode", 2); // Match substring
 
WinSetTrans("Notepad", "", 170); // Make Notepad window semi-transparent.
 
WinSetTrans("Notepad", "", 170); // Make Notepad window semi-transparent.
 
sleep(3000);
 
sleep(3000);

Revision as of 17:41, 5 December 2011

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