Scan_String

Treats the string as scanned data of the type specified. Scanner symbology values can be found in Symbologies and Values.

Parameters

Characters

The string that will be treated as scan data.

Scan Type

The scanner symbology of the scanned data.

Format

Scan_String (Characters, Scan Type)

Example

Script(Scan_String_Test)

String(sScanData)

Number(nScanType)

Activate(On_Input, sScanData, nScanType)

Comment:See if this is a special barcode to indicate a keypress.

Comment: You can adjust the barcode type and test strings to suit your purposes.

If(Number_Equal(nScanType, Get_Scan_Type_Value("CODE 128")))

If(String_Equal(sScanData, "Ctrl-A", 0, TRUE))

Keypress_Key("VT220", "Ctrl-A")

Return

End_If

End_If

Comment: We didn’t use the scan data. Pass it along for standard processing.

Scan_String(sScanData, nScanType)

Return

See Also

Keypress_String, Keypress_Key, Set_Cursor_Position, Get_Scan_Type_Name, Get_Scan_Type_Value

 


Was this article useful?    

The topic was:

Inaccurate

Incomplete

Not what I expected

Other

Privacy and Legal