Autohotkey-条形码宏-如果扫描了特定条形码,如何触发脚本? [英] Autohotkey - Barcode Macro - How to trigger a script if a certain barcode was scanned?

查看:120
本文介绍了Autohotkey-条形码宏-如果扫描了特定条形码,如何触发脚本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建条形码宏-如果用户扫描某个条形码,则将运行脚本.条形码可以是任何字符串,仅用于触发脚本.有什么想法吗?

I would like to create barcode macros - if the user scans a certain barcode, that would run a script. The barcode can be any character string, just to trigger the script. Any ideas?

提前谢谢!

推荐答案

要基于特定输入(例如键盘)运行脚本,请执行以下操作:

To run a script based on a specific input (e.g. keyboard) do this:

扫描的字符串示例:asdkffasdf

Example of scanned string: asdkffasdf

:?*:asdkffasdf::
    SoundBeep, 500,500
    MsgBox, String asdkffasdf has been scanned
Return

这篇关于Autohotkey-条形码宏-如果扫描了特定条形码,如何触发脚本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆