Core Function ControlGetFocus
From Sputnik Wiki
(Difference between revisions)
(Created page with "<pre> ControlGetFocus ( <title>, <text> ) </pre> === Description === Returns the ControlRef# of the control that has keyboard focus within a specified window. === Parameters =...") |
(→Return Value) |
||
Line 20: | Line 20: | ||
Success: Returns the ClassNameNN of the control that has keyboard focus within a specified window. | 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. | Failure: Returns a blank string and sets @error to 1 if window is not found. | ||
Revision as of 22:46, 25 August 2013
ControlGetFocus ( <title>, <text> )
Contents |
Description
Returns the ControlRef# of the control that has keyboard focus within a specified window.
Parameters
Title
The title of the window to access.
Text
The text of the window to access.
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.
Example
$a = ControlGetFocus("Untitled - Notepad"); MsgBox($a);