Returns the ControlRef# of the control that has keyboard focus within a specified window.
ControlGetFocus ( "title" [, "text"] )
Parameters
title | Title of window to check. |
text | [optional] Text from window to check. |
Return Value
Success: | Returns the ClassNameNN of the control that has keyboard focus within a specified window. |
Failure: | Returns a blank string and sets @error to 1 if window is not found. |
Remarks
None.
Related
ControlFocus, ControlCommand, WinActive
Example
$a = ControlGetFocus("Untitled - Notepad")