Retrieves the text from a standard status bar control.
Text := StatusBarGetText(Part#, WinTitle, WinText, ExcludeTitle, ExcludeText)
Which part number of the bar to retrieve. Default 1, which is usually the part that contains the text of interest.
Type: String, Integer or Object
A window title or other criteria identifying the target window. See WinTitle.
If present, this parameter must be a substring from a single text element of the target window (as revealed by the included Window Spy utility). Hidden text elements are detected if DetectHiddenText is ON.
Windows whose titles include this value will not be considered.
Windows whose text include this value will not be considered.
This function returns the text from a single part of the status bar control.
An exception is thrown on failure.
This function attempts to read the first standard status bar on a window (Microsoft common control: msctls_statusbar32). Some programs use their own status bars or special versions of the MS common control, in which case the text cannot be retrieved.
Rather than using this function in a loop, it is usually more efficient to use StatusBarWait, which contains optimizations that avoid the overhead of repeated calls to StatusBarGetText.
Window titles and text are case sensitive. Hidden windows are not detected unless DetectHiddenWindows has been turned on.
StatusBarWait, WinGetTitle, WinGetText, ControlGetText
RetrievedText := StatusBarGetText(1, "Search Results") if InStr(RetrievedText, "found") MsgBox "Search results have been found."