<variable> = GETFOCUS()
<variable> = GETTITLE()
Retrieve the Window Title that FOCUS() or FOCUSCLASS() is set to.
Example:
'-- Prompt user what to do
PROMPT "Select a Window and wait 5 Seconds.", 5
'-- Focus the current window
FOCUS("!", 5)
'-- Show user what he/she selected
PROMPT "You have selected: " + GETFOCUS()
See Also