Difference between revisions of "SendKeysWait"

From SCAR Divi Manual
Jump to: navigation, search
(Created page with "==Definition== <source lang="scar" lines="false"> procedure SendKeysWait(const Str: AnsiString; const WaitTime, RndTime: Integer); </source> ==Availability== SCAR Divi 3.00 > Cu...")
 
 
(One intermediate revision by the same user not shown)
Line 14: Line 14:
 
begin
 
begin
 
   Wait(5000);
 
   Wait(5000);
   SendKeysWait('Hello World!', 20, 10);
+
   SendKeysWait('Hello World!', 40, 20);
 
end.
 
end.
 
</source>
 
</source>
Line 26: Line 26:
  
 
[[Category:Functions]]
 
[[Category:Functions]]
[[Category:Keyboard Functions]]
+
[[Category:Deprecated Functions]]

Latest revision as of 00:28, 30 October 2012

Definition

procedure SendKeysWait(const Str: AnsiString; const WaitTime, RndTime: Integer);

Availability

SCAR Divi 3.00 > Current

Description

Sends the string given in Str to the active foreground window by emulating keystrokes on the keyboard. The wait time between each key is specified by WaitTime and supplemented by a random value from the interval [0,RndTime - 1].

Example

begin
  Wait(5000);
  SendKeysWait('Hello World!', 40, 20);
end.

See Also