본문 바로가기
컴퓨터/Internet

Autoit 팁

by zipi 2009. 1. 3.
반응형

아주 간단한 팁입니다.
바로 F1(도움말)이죠.

필요한 함수 명령어들이 쭉 나오고, 해당 함수가 어떻게 쓰는지 알수있습니다.
또한 해당 함수를 이용한 에제가 나오기 때문에 예제를 보면서 하면 쉽게 이해가됩니다.


 

Function Reference

WinGetState

Retrieves the state of a given window.

WinGetState ( "title" [, "text"] )

Parameters

title The title of the window to read. See Title special definition.
text [optional] The text of the window to read.

Return Value

Success: Returns a value indicating the state of the window. Multiple values are added together so use BitAND() to examine the part you are interested in:
1 = Window exists
2 = Window is visible
4 = Window is enabled
8 = Window is active
16 = Window is minimized
32 = Window is maximized
Failure: Returns 0 and sets @error to 1 if the window is not found.

Remarks

None.

Related

BitAND, WinGetPos

Example


; Check if a new notepad window is minimized
$state = WinGetState("Untitled", "")

; Is the "minimized" value set?
If BitAnd($state, 16) Then
    MsgBox(0, "Example", "Window is minimized")
EndIf


위 내용은 WinGetState라는 함수를 검색해 본 내용입니다.
검색방법은 F1을 눌러서 WinGetState를 검색하는 방법과
편집창에서 WinGetState 함수에 키보드 커서를 놓고 F1을 누르면 바로 나옵니다.

몇가지 설명을 하자면.

WinGetState ( "title" [, "text"] )    - 형식을 보여줍니다.
Return Value - 반환되는 값을 설명해줍니다.
Related - 관련함수를 링크시켜줍니다.
Example - 예제를 보여줍니다.

예제를 이용하면 쉽게 사용할수 있습니다.


도움말인 F1을 잘 이용하면 됩니다. 약간의 영어(..)만 한다면 쉽게 사용할수 있습니다.
반응형

'컴퓨터 > Internet' 카테고리의 다른 글

크롬에서 엑티브 X를....  (9) 2010.11.28
인터넷 익스플로러와 구글 크롬 실행 속도 비교  (0) 2010.11.26
Koda Form Designer  (0) 2009.01.03
애니 자막 검색기  (1) 2008.07.09
AutoIt 설치  (0) 2008.04.10

댓글