Created
December 10, 2017 08:32
-
-
Save mockiemockiz/0e80ce8c4c91b47d82994b386d07cc4d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val left = 90 | |
val center = 380 | |
val right = 662 | |
for (i in 0 until page) { | |
TscUSB.sendcommand("BARCODE " + left + ",32,\"128\",45,1,0,1,1,2,\"" + finalCode +"\" \r\n") | |
TscUSB.sendcommand("BARCODE " + center + ",32,\"128\",45,1,0,1,1,2,\"" + finalCode +"\" \r\n") | |
TscUSB.sendcommand("BARCODE " + right + ",32,\"128\",45,1,0,1,1,2,\"" + finalCode +"\" \r\n") | |
TscUSB.sendcommand("TEXT " + left + ",2,\"0\",0,6,9,2,\"" + text +"\" \r\n") | |
TscUSB.sendcommand("TEXT " + center + ",2,\"0\",0,6,9,2,\"" + text +"\" \r\n") | |
TscUSB.sendcommand("TEXT " + right + ",2,\"0\",0,6,9,2,\"" + text +"\" \r\n") | |
TscUSB.sendcommand("TEXT " + (left + 135) + ",65,\"0\",90,15,9,2,\"" + sizeRaw.toString() +"\" \r\n") | |
TscUSB.sendcommand("TEXT " + (center + 135) + ",65,\"0\",90,15,9,2,\"" + sizeRaw.toString() +"\" \r\n") | |
TscUSB.sendcommand("TEXT " + (right+135) + ",65,\"0\",90,15,9,2,\"" + sizeRaw.toString() +"\" \r\n") | |
TscUSB.sendcommand("BAR " + (right+120) + ",5,2,50 \r\n") | |
TscUSB.sendcommand("PRINT 1\r\n") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment