FAQ TWedge
How Can I Append a Carriage Return to my Data?
How Can I Append a Carriage Return to my Data?
You have to modify the script in the OnData or processData event code. Carriage Return can be added via the escape sequence \r (Carriage Return) or \n (Line Feed). In Javascript string concatenation is done with the + operator.
Menu (V2) Configuration - Script Editor - Edit Code: OnData
Menu (V3) Device - Configure - Advanced - Script Editor - Edit Code: onData
Change the following code line and add the + "\n" as shown below:
// V2 (OnData function):
SendKeyStrokes(DATA.replace (/\x00/g, " ") + "\n");
// V3 (processData function):
SendKeyStrokes (sData.replace(/\x00/g, " ") + "{ENTER}")
See the FAQ above for a list of common escape sequences.