如何将按键功能 CTRL-B 模拟为条形码
How do I emulate key function CTRL-B to a barcode
这是我第一次post上这个网站,好像不能解决问题。
如何将按键功能 Ctrl+B 模拟到条形码,这样我就可以用扫描仪扫描条形码而无需按 Ctrl+B。
我试过阅读 ASCII 控制代码 ASCII control codes
请帮助我。
正如您的一个标签所示,您已经了解代码 128 的符号体系。您将要使用 code128A 起始代码 (103) 和与 code128B (66) 中的小写 'b' 相同的字符。最后,添加附加数据后,正确计算校验和并将其与停止代码 (106) 一起添加。以下HTML说明:
<img
alt="103,{Start A}" title="103,{Start A}" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAABAQMAAAAy+cYDAAAABlBMVEUAAAD///+l2Z/dAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAADklEQVQIHQEDAPz/AC9gAMEAkBQ+aMgAAAAASUVORK5CYII=" width="20" height="40"><img
alt=" 66,A:{STX},B:{b}" title=" 66,A:{STX},B:{b}" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAABAQMAAAAy+cYDAAAABlBMVEUAAAD///+l2Z/dAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAADklEQVQIHQEDAPz/AG8gAQEAkGqGy8gAAAAASUVORK5CYII=" width="20" height="40"><img
alt=" 52,A:{T},B:{T}" title=" 52,A:{T},B:{T}" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAABAQMAAAAy+cYDAAAABlBMVEUAAAD///+l2Z/dAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAADklEQVQIHQEDAPz/ACOgAOkAxNCxwt0AAAAASUVORK5CYII=" width="20" height="40"><img
alt=" 37,A:{E},B:{E}" title=" 37,A:{E},B:{E}" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAABAQMAAAAy+cYDAAAABlBMVEUAAAD///+l2Z/dAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAADklEQVQIHQEDAPz/AHLgAccBU7KPeu8AAAAASUVORK5CYII=" width="20" height="40"><img
alt=" 51,A:{S},B:{S}" title=" 51,A:{S},B:{S}" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAABAQMAAAAy+cYDAAAABlBMVEUAAAD///+l2Z/dAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAADklEQVQIHQEDAPz/ACLgAScBA3yI80wAAAAASUVORK5CYII=" width="20" height="40"><img
alt=" 52,A:{T},B:{T}" title=" 52,A:{T},B:{T}" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAABAQMAAAAy+cYDAAAABlBMVEUAAAD///+l2Z/dAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAADklEQVQIHQEDAPz/ACOgAOkAxNCxwt0AAAAASUVORK5CYII=" width="20" height="40"><img
alt=" 24,A:{8},B:{8}" title=" 24,A:{8},B:{8}" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAABAQMAAAAy+cYDAAAABlBMVEUAAAD///+l2Z/dAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAADklEQVQIHQEDAPz/ABZgAI8Ad3Mh6bwAAAAASUVORK5CYII=" width="20" height="40"><img
alt="106,{Stop}"title="106,{Stop}"src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAABAQMAAAA/57ZEAAAABlBMVEUAAAD///+l2Z/dAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAADklEQVQIHQEDAPz/ADigARMA2dpJzT8AAAAASUVORK5CYII=" width="20" height="40">
要进行测试,请打开写字板或任何使用 'Ctrl-B' 打开和关闭粗体文本的文字处理器。扫描代码段中条形码的打印副本。每次扫描时,您应该会看到文本 "TEST" 在粗体和普通样式之间交替。
<img
alt="103,{Start A}" title="103,{Start A}" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAABAQMAAAAy+cYDAAAABlBMVEUAAAD///+l2Z/dAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAADklEQVQIHQEDAPz/AC9gAMEAkBQ+aMgAAAAASUVORK5CYII=" width="12" height="33"><img
alt=" 66,A:{STX},B:{b}" title=" 66,A:{STX},B:{b}" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAABAQMAAAAy+cYDAAAABlBMVEUAAAD///+l2Z/dAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAADklEQVQIHQEDAPz/AG8gAQEAkGqGy8gAAAAASUVORK5CYII=" width="12" height="33"><img
alt=" 66,A:{STX},B:{b}" title=" 66,A:{STX},B:{b}" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAABAQMAAAAy+cYDAAAABlBMVEUAAAD///+l2Z/dAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAADklEQVQIHQEDAPz/AG8gAQEAkGqGy8gAAAAASUVORK5CYII=" width="12" height="33"><img
alt="106,{Stop}"title="106,{Stop}"src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAABAQMAAAA/57ZEAAAABlBMVEUAAAD///+l2Z/dAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAADklEQVQIHQEDAPz/ADigARMA2dpJzT8AAAAASUVORK5CYII=" width="12" height="33">
这是我第一次post上这个网站,好像不能解决问题。
如何将按键功能 Ctrl+B 模拟到条形码,这样我就可以用扫描仪扫描条形码而无需按 Ctrl+B。 我试过阅读 ASCII 控制代码 ASCII control codes 请帮助我。
正如您的一个标签所示,您已经了解代码 128 的符号体系。您将要使用 code128A 起始代码 (103) 和与 code128B (66) 中的小写 'b' 相同的字符。最后,添加附加数据后,正确计算校验和并将其与停止代码 (106) 一起添加。以下HTML说明:
<img
alt="103,{Start A}" title="103,{Start A}" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAABAQMAAAAy+cYDAAAABlBMVEUAAAD///+l2Z/dAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAADklEQVQIHQEDAPz/AC9gAMEAkBQ+aMgAAAAASUVORK5CYII=" width="20" height="40"><img
alt=" 66,A:{STX},B:{b}" title=" 66,A:{STX},B:{b}" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAABAQMAAAAy+cYDAAAABlBMVEUAAAD///+l2Z/dAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAADklEQVQIHQEDAPz/AG8gAQEAkGqGy8gAAAAASUVORK5CYII=" width="20" height="40"><img
alt=" 52,A:{T},B:{T}" title=" 52,A:{T},B:{T}" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAABAQMAAAAy+cYDAAAABlBMVEUAAAD///+l2Z/dAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAADklEQVQIHQEDAPz/ACOgAOkAxNCxwt0AAAAASUVORK5CYII=" width="20" height="40"><img
alt=" 37,A:{E},B:{E}" title=" 37,A:{E},B:{E}" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAABAQMAAAAy+cYDAAAABlBMVEUAAAD///+l2Z/dAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAADklEQVQIHQEDAPz/AHLgAccBU7KPeu8AAAAASUVORK5CYII=" width="20" height="40"><img
alt=" 51,A:{S},B:{S}" title=" 51,A:{S},B:{S}" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAABAQMAAAAy+cYDAAAABlBMVEUAAAD///+l2Z/dAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAADklEQVQIHQEDAPz/ACLgAScBA3yI80wAAAAASUVORK5CYII=" width="20" height="40"><img
alt=" 52,A:{T},B:{T}" title=" 52,A:{T},B:{T}" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAABAQMAAAAy+cYDAAAABlBMVEUAAAD///+l2Z/dAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAADklEQVQIHQEDAPz/ACOgAOkAxNCxwt0AAAAASUVORK5CYII=" width="20" height="40"><img
alt=" 24,A:{8},B:{8}" title=" 24,A:{8},B:{8}" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAABAQMAAAAy+cYDAAAABlBMVEUAAAD///+l2Z/dAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAADklEQVQIHQEDAPz/ABZgAI8Ad3Mh6bwAAAAASUVORK5CYII=" width="20" height="40"><img
alt="106,{Stop}"title="106,{Stop}"src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAABAQMAAAA/57ZEAAAABlBMVEUAAAD///+l2Z/dAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAADklEQVQIHQEDAPz/ADigARMA2dpJzT8AAAAASUVORK5CYII=" width="20" height="40">
要进行测试,请打开写字板或任何使用 'Ctrl-B' 打开和关闭粗体文本的文字处理器。扫描代码段中条形码的打印副本。每次扫描时,您应该会看到文本 "TEST" 在粗体和普通样式之间交替。
<img
alt="103,{Start A}" title="103,{Start A}" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAABAQMAAAAy+cYDAAAABlBMVEUAAAD///+l2Z/dAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAADklEQVQIHQEDAPz/AC9gAMEAkBQ+aMgAAAAASUVORK5CYII=" width="12" height="33"><img
alt=" 66,A:{STX},B:{b}" title=" 66,A:{STX},B:{b}" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAABAQMAAAAy+cYDAAAABlBMVEUAAAD///+l2Z/dAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAADklEQVQIHQEDAPz/AG8gAQEAkGqGy8gAAAAASUVORK5CYII=" width="12" height="33"><img
alt=" 66,A:{STX},B:{b}" title=" 66,A:{STX},B:{b}" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAABAQMAAAAy+cYDAAAABlBMVEUAAAD///+l2Z/dAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAADklEQVQIHQEDAPz/AG8gAQEAkGqGy8gAAAAASUVORK5CYII=" width="12" height="33"><img
alt="106,{Stop}"title="106,{Stop}"src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAABAQMAAAA/57ZEAAAABlBMVEUAAAD///+l2Z/dAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAADklEQVQIHQEDAPz/ADigARMA2dpJzT8AAAAASUVORK5CYII=" width="12" height="33">