Autohotkey - Barcode Macro - How to trigger a scri

2019-09-20 05:24发布

问题:

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