Autohotkey - Barcode Macro - How to trigger a script if a certain barcode was scanned?

这一生的挚爱 提交于 2019-12-25 17:05:07

问题


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?

Thanks in advance!


回答1:


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

Example of scanned string: asdkffasdf

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


来源:https://stackoverflow.com/questions/15177112/autohotkey-barcode-macro-how-to-trigger-a-script-if-a-certain-barcode-was-sc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!