- Install Python 3 (I use 3.10)
- Run the following command (to install dependencies)
python3 -m pip install --upgrade pyzbar Pillow pyperclip
- Copy
main.py
toC:\qrcode-decode
(Or whereever, just being able to run from command line) - On Greenshot's icon located in the taskbar, right click and click "Configure external commands"
- On "External command settings" window, click "New" button.
- On "Configure command" window, fill up the following values:
- Name:
Decode QR
- Command:
C:\Python310\python.exe
(Or anywhere that Python executable file locaated) - Argument:
C:\qrcode-decode\main.py "{0}"
then click "Ok"
When you take a screenshot and choose "Decode QR", if the script can detect QR code, it'll copy the value (URL, number, text, etc.) from the first QR code to your clipboard.