SendKeys

Sends the specified text to the screen starting at the specified position as if they are typed by the user, or sends the specified AID key to the host. If the optional position parameter is omitted, the current cursor position will be used.


Syntax

FlexScreen.SendKeys(Text, [Position])


FlexScreen.SendKeys(FlexKey)


Parameters


Text

String, input



Text string to send.


FlexKey

Integer, input



AID key to send.


[Position]

Integer, input, optional



Integer value of the zero based screen position, which may be obtained by using the FlexScreen.Position method.


Example

Sub Main()

  Ok = FlexScreen.SendKeys("MyUserID")

  Ok = FlexScreen.SendKeys(FlexKey.ENTER)

End Sub