ウィンドウを常に最前面表示状態にしたり、半透明にしたりする
WinSet, SubCmd, Value [, WinTitle, WinText, ExcludeTitle, ExcludeText]
引数名 | 説明 |
---|---|
SubCmd,Value | 下記参照。 |
WinTitle | ウィンドウタイトルなど。 ウィンドウ指定の方法参照。 |
WinText | ウィンドウに含まれるテキスト |
ExcludeTitle | 除外タイトル |
ExcludeText | 除外テキスト |
WinSet, TransColor, EEAA99 150
)WinGet, WinHide, WinSetTitle, WinMove, WinActivate
WinSet, Transparent, 200, Untitled - Notepad ; Make the window a little bit transparent. WinSet, TransColor, White, Untitled - Notepad ; Make all white pixels invisible. WinSet, AlwaysOnTop, toggle, Calculator ; Toggle the always-on-top status of Calculator. ; Longer Example: ; Here are some hotkeys that demonstrate the effects of "Transparent" and ; "TransColor". NOTE: If you press one of the hotkeys while the mouse cursor ; is hovering over a pixel that is invisible as a result of TransColor, the window ; visible beneath that pixel will be acted upon instead! Also, Win+G will ; have an effect only on Windows XP because retrieval of transparency settings ; is not supported by Windows 2000: #t:: ; Press Win+T to make the color under the mouse cursor invisible. MouseGetPos, MouseX, MouseY, MouseWin PixelGetColor, MouseRGB, %MouseX%, %MouseY%, RGB ; In seems necessary to turn off any existing transparency first: WinSet, TransColor, Off, ahk_id %MouseWin% WinSet, TransColor, %MouseRGB% 220, ahk_id %MouseWin% return #o:: ; Press Win+O to turn off transparency for the window under the mouse. MouseGetPos,,, MouseWin WinSet, TransColor, Off, ahk_id %MouseWin% return #g:: ; Press Win+G to show the current settings of the window under the mouse. MouseGetPos,,, MouseWin WinGet, Transparent, Transparent, ahk_id %MouseWin% WinGet, TransColor, TransColor, ahk_id %MouseWin% ToolTip Translucency:`t%Transparent%`nTransColor:`t%TransColor% return ; Examples of "WinSet Region": WinSet, Region, 50-0 W200 H250, WinTitle ; Make all parts of the window outside this rectangle invisible. WinSet, Region, 50-0 W200 H250 R40-40, WinTitle ; Same as above but with corners rounded to 40x40. WinSet, Region, 50-0 W200 H250 E, WinTitle ; An ellipse instead of a rectangle. WinSet, Region, 50-0 250-0 150-250, WinTitle ; A triangle with apex pointing down. WinSet, Region,, WinTitle ; Restore the window to its original/default display area. ; Here is a region with a more complex area. It creates a see-through rectangular hole inside a window. ; There are two rectangles specified below: an outer and an inner. Each rectangle consists of 5 pairs ; of X/Y coordinates because the first pair is repeated at the end to "close off" each rectangle. WinSet, Region, 0-0 300-0 300-300 0-300 0-0 100-100 200-100 200-200 100-200 100-100, WinTitle