SpQueryWindowText: Difference between revisions
Appearance
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..." |
m Ak120 moved page OS2 API:SPUTILS:spQueryWindowText to SpQueryWindowText |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 15: | Line 15: | ||
'text: "'||spQueryWindowText(ARG(2))||'"' | 'text: "'||spQueryWindowText(ARG(2))||'"' | ||
[...] | [...] | ||
[[Category:SpUtils]] |
Latest revision as of 00:07, 27 February 2017
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))||'"' [...]