问题
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