Method Reference (COM)

WinSetTrans

Sets the transparency of a window. (Windows 2000/XP or later)

WinSetTrans "title", "text", transparency

 

Parameters

title The title of the window to change.
text The text of the window to change.
transparency A number in the range 0 - 255. The larger the number, the more transparent the window will become.

 

Return Value

Non-zero on success, zero on failure. oAutoIt.error will be set to 1 if the function isn't supported on an OS.

 

Remarks

Requires Windows 2000/XP or later.

 

Related

None.

 

Example

Set oAutoIt = WScript.CreateObject("AutoItX3.Control")

oAutoIt.Run("notepad.exe", "", oAutoIt.SW_MINIMIZE)
oAutoIt.WinWaitActive("Untitled - Notepad")
oAutoIt.WinSetTrans "Untitled - Notepad","", 50