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 =...") |
m (1 revision) |
||
(3 intermediate revisions by one user not shown) | |||
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 | + | |
+ | Failure: Returns a blank string if window is not found. | ||
=== Remarks === | === Remarks === |
Latest revision as of 12:38, 14 June 2015
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 if window is not found.
Remarks
None.
Example
$a = ControlGetFocus("Untitled - Notepad"); MsgBox($a);