Core Function WinGetText
From Sputnik Wiki
(Difference between revisions)
UberFoX (Talk | contribs)
(Created page with "<pre> WinGetText ( <title>, <text> ) </pre> === Description === Retrieves the text from a window. === Parameters === ==== Title ==== The title of the window. ==== Text ====...")
Newer edit →
(Created page with "<pre> WinGetText ( <title>, <text> ) </pre> === Description === Retrieves the text from a window. === Parameters === ==== Title ==== The title of the window. ==== Text ====...")
Newer edit →
Revision as of 19:10, 29 November 2011
WinGetText ( <title>, <text> )
Contents |
Description
Retrieves the text from a window.
Parameters
Title
The title of the window.
Text
Optional; The text of the window to read.
Return Value
Returns a string containing the window text read.
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 Opt("WinDetectHiddenText", 1)
If multiple windows match the criteria for WinGetText, the information for the most recently active match is returned.
Use WinGetText("") to get the active window's text.
See "WinTitleMatchMode" in Opt
Example
$text = WinGetText("Untitled -", ""); MsgBox("Text read was: $text");