DetectHiddenWindows

스크립트에 보이지 않은 창을 "보여줄지 말지" 결정합니다.

DetectHiddenWindows, OnOff

매개변수

OnOff

On: 숨은 창을 탐지합니다.

Off: 이것이 기본값입니다. 숨은 창은 탐지되지 않습니다. 단,WinShow 명령어로는 탐지할 수 있습니다.

[v1.1.30+]: The decimal values 1 and 0 may be used in place of On and Off, respectively.

논평

DetectHiddenWindows를 켜면 어떤 경우 스크립팅이 힘들어질 수 있습니다. 왜냐하면 어떤 숨은 시스템 창이 우발적으로 여러분이 작업을 시도하는 텍스트 또는 창 제목에 부합해 버릴 수 있기 때문입니다. 그래서 대부분의 스크립트는 이 설정을 끈 상태로 두어야 합니다. 그렇지만, 숨은 창과 직접적으로 작업을 하고 싶다면 켜는게 좋습니다. 작업 전에 먼저 WinShow를 사용하여 보여주어야 할 필요가 없습니다.

All windowing commands, built-in functions and control flow statements except WinShow are affected by this setting, including WinActivate, WinActive(), IfWinActive, WinWait, WinExist(), IfWinExist. 대조적으로, WinShow는 언제나 숨은 창을 보여줍니다. 숨은 창 탐지가 켜져 있지 않더라도 상관없습니다.

ahk_id method를 통하여 또는 마지막 발견 창으로 콘트롤이나 자손 창에 접근할 때 DetectHiddenWindows을 켤 필요가 없습니다. 또 GUI 창에 Gui +LastFound를 통하여 접근할 때도 필요 없습니다.

[v1.1.32+]: Cloaked windows are also considered hidden. Cloaked windows, introduced with Windows 8, are windows on a non-active virtual desktop or UWP apps which have been suspended to improve performance, or more precisely to reduce their memory consumption. On Windows 10, the processes of those are indicated with a green leaf in the Task Manager. Such windows are hidden from view, but might still have the WS_VISIBLE window style. Prior to v1.1.32, all windows with the WS_VISIBLE style were considered visible.

내장 함수 A_DetectHiddenWindows에 현재 설정이 담겨 있습니다 (On 또는 Off).

새로 기동된 쓰레드마다 (핫키, 맞춤 메뉴 항목, 또는 타이머 서브루틴) 이 명령어에 대한 기본값을 가지고 새로 시작합니다. 이 설정은 이 명령어를 자동-실행 섹션에 (스크립트의 상단 부분) 사용하면 바꿀 수 있습니다.

DetectHiddenText

예제

Turns on the detection of hidden windows.

DetectHiddenWindows, On