tailieunhanh - AutoI Technology Curriculum Book part 120

Tham khảo tài liệu 'autoi technology curriculum book part 120', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | ProcessWait ProcessWaitClose ProcessList Example Run pid WinGetProcess CLASS Notepad MsgBox 4096 PID is pid 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 Function Reference WinGetText Retrieves the text from a window. WinGetText 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 string containing the window text read. Failure Returns numeric 0 if no title match. Remarks Up to 64KB of window text can be retrieved. WinGetText works on minimized windows but only works on hidden windows if you ve set AutoItSetOption WinDetectHiddenText 1 If multiple windows match the criteria for WinGetText the information for the most recently active match is returned. Use WinGetText active to get the active window s text. Related WinGetTitle ControlGetText Example text WinGetText Untitled - MsgBox 0 Text read was text Function Reference WinGetTitle Retrieves the full title from a window. WinGetTitle title text