Section 3 methods, Senddata method – MagTek SENDKEYS.OCX User Manual

Page 11

Advertising
background image

7

SECTION 3 METHODS

SENDDATA METHOD
Sends the keystrokes.

Syntax

SendKeys.SendData[ = strData]

The SendData method syntax has these parts:

Part

Description

strData

The SendData method is used to
send the keystrokes.

Remarks

The SendData method is the method that sends the keystrokes to the computer. The SendData
method can also use Keywords to represent keystrokes. If the keystrokes are sent successfully
then the method will return 0. If the TargetApp references an application that is not running then
the method will return an error code of 5.

Example

SendKeys.SendData = ‘Hello World{ENTER}”

Data Type

Integer


Advertising