Jump to content

SpQueryWindowText

From EDM2
Revision as of 03:51, 6 April 2015 by Martini (talk | contribs) (Created page with "This function copies window text into a buffer. '''Syntax:''' text = spQueryWindowText ( hwnd ) Parameter: * hwnd – Window handle. If hwnd is a frame-window handle, the t...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This function copies window text into a buffer.

Syntax: text = spQueryWindowText ( hwnd )

Parameter:

  • hwnd – Window handle. If hwnd is a frame-window handle, the title-bar
  • window text is copied.

Returns: Window text.

Example Code: (part of spIsWindow example code)

/* wininfo.cmd (spUtils Example Code) */
[...]
SAY LEFT(ARG(1),20,' ')||,
'text: "'||spQueryWindowText(ARG(2))||'"'
[...]