Core Function ControlSetText
From Sputnik Wiki
(Difference between revisions)
(Created page with "<pre> ControlSetText ( <title>, <text>, <controlID>, <text> ) </pre> === Description === Sets text of a control. === Parameters === ==== Title ==== The title of the window t...") |
m (1 revision) |
||
(2 intermediate revisions by one user not shown) | |||
Line 37: | Line 37: | ||
=== Example === | === Example === | ||
<syntaxhighlight lang="sputnik"> | <syntaxhighlight lang="sputnik"> | ||
− | ControlSetText("Untitled - | + | Run("notepad.exe"); |
+ | WinWait("Untitled -"); | ||
+ | sleep(100); | ||
+ | ControlSetText("Untitled -", "", "Edit1", "New Text Here" ); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
[[Category:Core Function]] | [[Category:Core Function]] |
Latest revision as of 12:37, 14 June 2015
ControlSetText ( <title>, <text>, <controlID>, <text> )
Contents |
Description
Sets text of a control.
Parameters
Title
The title of the window to access.
Text
The text of the window to access.
controlID
The control to interact with.
text
The new text to be set into the control.
Return Value
Success: Returns 1.
Failure: Returns 0.
Remarks
None.
Example
Run("notepad.exe"); WinWait("Untitled -"); sleep(100); ControlSetText("Untitled -", "", "Edit1", "New Text Here" );