;#AutoIt3Wrapper_UseX64=n
Local $hDLL = DllOpen(@ScriptDir & '\ZMWIN.dll') ;调用dll )
DllCall($hDLL, 'int', 'OpenPort', 'str', 'ZMIN X1i');打开打印机
DllCall($hDLL, 'ptr', 'ZM_ClearBuffer');清除打印缓存
DllCall($hDLL, 'int', 'ZM_SetLabelHeight', 'int', 400, 'int' , 20 ) ;标签高度
DllCall($hDLL, 'int', 'ZM_SetLabelWidth', 'int', 600) ;标签宽度
DllCall($hDLL, 'int', 'ZM_DrawBarcode', 'int', 40, 'int', 20, 'int', 0, 'str', '1A','int',1,'int',1,'int',10,'str','B','str','‖123456‖')
DllCall($hDLL, 'int', 'ZM_PrintLabel', 'int', 1, 'int', 1)
DllCall($hDLL, 'ptr', 'ClosePor')
DllClose($hDLL)