找回密码
 加入
搜索
查看: 1642|回复: 2

[AU3基础] 标签打印机软件 Labelmx_sdk.dll 调用

[复制链接]
发表于 2020-5-6 16:41:40 | 显示全部楼层 |阅读模式
想打印标签,发现这个软件可以二次开发,但是!不晓得这种DLL 如何调用,里面有详细的借口,求大佬帮忙解决一下,万分感谢!

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入

×
发表于 2020-5-6 21:36:04 | 显示全部楼层
#AutoIt3Wrapper_UseX64=n
Local $hDLL = DllOpen(@ScriptDir & '\Labelmx_sdk.dll')
DllCall($hDLL, 'int', 'HY_Initialization', 'int', 0)
DllCall($hDLL, 'bool', 'HY_OpenLax', 'str', @ScriptDir & '\demo.lax')
DllCall($hDLL, 'bool', 'HY_SetVariable', 'str', '段落', 'str', 'Au3 demo' & @CRLF & '这是演示文件!', 'str', '', 'str', '')
DllCall($hDLL, 'bool', 'HY_SetVariable', 'str', 'txt', 'str', '001', 'str', '', 'str', '')
DllCall($hDLL, 'bool', 'HY_SetVariable', 'str', '一维条码', 'str', '123456789', 'str', '', 'str', '')
DllCall($hDLL, 'bool', 'HY_SetVariable', 'str', '二维条码', 'str', 'https://www.autoitx.com', 'str', '', 'str', '')
DllCall($hDLL, 'int', 'HY_Print', 'int', 0, 'str', '-1', 'bool', False, 'bool', False)
DllCall($hDLL, 'ptr', 'HY_Close')
DllClose($hDLL)

评分

参与人数 1金钱 +30 收起 理由
afan + 30 赞一个!

查看全部评分

 楼主| 发表于 2020-5-8 16:11:37 | 显示全部楼层

太感动了!!!眼泪汪汪的!!!!
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-6-2 12:58 , Processed in 0.073230 second(s), 22 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表