<< Click to Display Table of Contents >> Navigation: 3. Script Language > Keyboard Typing Simulation > Keyboard Typing Simulation |
MiniRobotLanguage (MRL)
SKT. Command
Send Key Text
Intention
The SKT.-Command can be used to simulate Keyboard typing. SKP. is like if you really type something into the keyboard. This makes it very compatible with real typing.
SKT. will work on any place, where you can also enter text using the keyboard.It will work also in browsers, Java- and WEB-based controls.
As it is just like if "somebody is really typing", it has all advantages and all limitations from that.
• The target control must have Input focus
• the target window must be in front
• you may need to wait a bit (PAU.0.5) after typing until the control is ready
• SKT. its slower then any direct engine command
• but its highly compatible
• it understands special keyboard-actions like ctrl- or Shift or Alt-Key (see below).
• It can not change the text of buttons or controls like SDT..
SKT. - unlike SKP. does NOT understand any Special-Sequences like {RETURN} or {SHIFT} . It will just try to type whatever it gets. SKT. will not interpret any systemvariables or specialfolders. It will jut resolve a given variable and then start typing.
You can not make a "NEWLINE" with SKT. using {RETURN}. But you can make a NEWLINE like this:
VAR.$$TXA=abc$crlf$cba
SKT.$$TXA
Because $crlf$ will be converted to ASCII using the VAR.-Command and SKT. will just type it. In some editors you will even get two newlines, one for the $cr$ and one for the $lf$.
You can read more about Keyboard-Simulation and Text-Boxes in the chapter:
Syntax
SKT.P1
Parameter Explanation
P1 - VAR or STRING (NO specialfolders, NO systemvariables)
Example
' Type into Ulktraedit
STW.Act|Afx:|UltraEdit-32
SCW.c|EditControl
SAW.
VAR.$$TXA=abc$crlf$cba
SKT.$$TXA
END.
Remarks
-
Limitations:
-
See also:
• 1.9.1.6 Edit-Textbox Control
• RST. - Replace Selected Text