Method Reference (COM)

WinSetTrans

ウィンドウの透明度を設定します。(Windows 2000/XP 以降)

WinSetTrans "title", "text", transparency

 

パラメータ

title 対象となるウィンドウのタイトル
text 対象となるウィンドウのテキスト
transparency 0 - 255の範囲の数値。 A number in the range 0 - 255。数値が大きいほどウィンドウの透明度が上がります

 

返し値

成功時には非ゼロの値、失敗時にはゼロ。OSでこの関数がサポートされていない場合、oAutoIt.errorに1が設定されます。

 

注意

Windows 2000/XP 以降のみ対応。

 

関連

なし。

 

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

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