</head> <body> <h1>WinKill</h1> <p>지정된 창을 강제로 닫습니다.</p> <pre class="Syntax"><span class="func">WinKill</span> <span class="optional">, WinTitle, WinText, SecondsToWait, ExcludeTitle, ExcludeText</span></pre> <h2 id="Parameters">매개변수</h2> <dl> <dt>WinTitle</dt> <dd><p>목표 창을 식별하는 창 제목 또는 다른 기준. <a href="../misc/WinTitle.htm">WinTitle</a> 참조.</p></dd> <dt>WinText</dt> <dd><p>존재하면, 이 매개변수는 목표 창 텍스트의 부문자열입니다 (동봉된 Window Spy 유틸리티에 노출됨). 숨은 텍스트는 <a href="DetectHiddenText.htm">DetectHiddenText</a>가 켜져 있어야 탐지됩니다.</p></dd> <dt>SecondsToWait</dt> <dd><p>생략되거나 비어 있으면, 전혀 기다리지 않습니다. 0이면 500ms 동안 기다립니다. 그렇지 않으면, 지정 개수의 초 동안 창이 닫히기를 기다립니다 (소수점을 허용하고 <a href="../Variables.htm#Expressions">표현식</a>도 가능합니다). 창이 그 동안 닫히지 않더라도, 스크립트는 실행을 계속합니다. ErrorLevel is <strong>not</strong> set by this command, so use <a href="WinExist.htm">WinExist()</a>, <a href="IfWinExist.htm">IfWinExist</a> or <a href="WinWaitClose.htm">WinWaitClose</a> if you need to determine for certain that a window is closed.</p></dd> <dt>ExcludeTitle</dt> <dd><p>제목에 이 값이 있는 창은 무시합니다.</p></dd> <dt>ExcludeText</dt> <dd><p>텍스트에 이 값이 있는 창은 무시합니다.</p></dd> </dl> <h2 id="Remarks">논평</h2> <p>이 명령어는 먼저 창을 정상적으로 닫으려고 간략하게 시도합니다. 실패하면, 그의 프로세스를 종료하여 그 창을 강제로 닫으려고 시도합니다.</p> <p>If a matching window is active, that window will be closed in preference to any other matching window. 일반적으로, 여러 창이 부합하면, 최상위 (가장 최근에 사용된) 창이 닫힙니다.</p> <p>This command operates only upon a single window except when <em>WinTitle</em> is <a href="GroupAdd.htm">ahk_group GroupName</a>, in which case all windows in the group are affected.</p> <p>창 제목과 텍스트는 대소문자를 구분합니다. 숨은 창은 <a href="DetectHiddenWindows.htm">DetectHiddenWindows</a>가 켜져 있어야 탐지됩니다.</p> <h2 id="Related">관련 항목</h2> <p><a href="WinClose.htm">WinClose</a>, <a href="WinWaitClose.htm">WinWaitClose</a>, <a href="Process.htm">Process</a>, <a href="WinActivate.htm">WinActivate</a>, <a href="SetTitleMatchMode.htm">SetTitleMatchMode</a>, <a href="DetectHiddenWindows.htm">DetectHiddenWindows</a>, <a href="../misc/WinTitle.htm#LastFoundWindow">마지막 발견 창</a>, <a href="WinExist.htm">WinExist()</a>, <a href="WinActive.htm">WinActive()</a>, <a href="WinWaitActive.htm">WinWaitActive</a>, <a href="WinWait.htm">WinWait</a>, <a href="GroupActivate.htm">GroupActivate</a></p> <h2 id="Examples">예제</h2> <div class="ex" id="ExBasic"> <p><a class="ex_number" href="#ExBasic"></a> If Notepad does exist, force it to close, otherwise force the calculator to close.</p> <pre>if WinExist("Untitled - Notepad") WinKill <em>; Use the window found by WinExist.</em> else WinKill, Calculator</pre> </div> </body> </html>