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...") |
(→Example) |
||
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]] |
Revision as of 19:19, 28 January 2013
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" );