Core Function WinActivate

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "<pre> WinActivate ( <title>, <text> ) </pre> === Description === Activates (gives focus to) a window. === Parameters === ==== Title ==== The title of the window to activate....")
 
m (1 revision)
 
(3 intermediate revisions by one user not shown)
Line 11: Line 11:
 
==== Title ====
 
==== Title ====
  
The title of the window to activate.
+
The title of the window.
  
==== clicks ====
+
==== Text ====
  
Optional; The text of the window to activate.
+
Optional; The text of the window to read.
  
 
=== Return Value ===
 
=== Return Value ===
Line 34: Line 34:
  
 
<syntaxhighlight lang="sputnik">
 
<syntaxhighlight lang="sputnik">
WinActivate("Untitled - Notepad")
+
WinActivate("Untitled - Notepad");
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
[[Category:Core Function]]
 
[[Category:Core Function]]

Latest revision as of 12:38, 14 June 2015

WinActivate ( <title>, <text> )

Contents

Description

Activates (gives focus to) a window.

Parameters

Title

The title of the window.

Text

Optional; The text of the window to read.

Return Value

None

Remarks

You can use the WinActive function to check if WinActivate succeeded.

If multiple windows match the criteria, the window that was most recently active is the one activated.

WinActivate works on minimized windows. However, a window that is "Always On Top" could still cover up a window you Activated.

See "WinTitleMatchMode" in Opt

Example

WinActivate("Untitled - Notepad");
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox