Core Function ControlGetFocus

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
(Return Value)
m (1 revision)
 
(2 intermediate revisions by one user not shown)
Line 21: Line 21:
 
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 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);
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox