AUTOHOTKEY/레퍼런스
IfWinExist / IfWinNotExist 조건에 일치하는 윈도우가 존재할지로 분기
님투
2007. 11. 5. 14:39
반응형
IfWinExist / IfWinNotExist
조건에 일치하는 윈도우가 존재할지로 분기
IfWinExist [, WinTitle, WinText, ExcludeTitle, ExcludeText] IfWinNotExist [, WinTitle, WinText, ExcludeTitle, ExcludeText] hwnd:=WinExist("WinTitle", "WinText", "ExcludeTitle", "ExcludeText")
Parameters
인수명 | 설명 |
---|---|
WinTitle | 윈도우 타이틀 등. 윈도우 지정의 방법참조. |
WinText | 윈도우에 포함되는 텍스트 |
ExcludeTitle | 제외 타이틀 |
ExcludeText | 제외 텍스트 |
Remarks
IfWinExist하지만 진이었다고 나무나IfWinNotExist하지만 가짜였다고 와, 조건에 일치한 윈도우는LastFoundWindow(으)로서 기억된다.
자세한 것은 윈도우 지정의 방법참조.
편입 함수WinExist()(은)는 발견된 윈도우의 윈도우 핸들을 돌려준다.
Related
SetTitleMatchMode, DetectHiddenWindows, Last Found Window, IfWinExist, WinActivate, WinWaitActive, WinWait, WinWaitClose
Example(s)
IfWinExist, Untitled - Notepad { WinActivate ; Automatically uses the window found above. WinMaximize ; same Send, Some text.{Enter} return } IfWinNotExist, Calculator return else { WinActivate ; The above "IfWinNotExist" also set the "last found" window for us. WinMove, 40, 40 ; Move it to a new position. return }
반응형