Skip to content

Instantly share code, notes, and snippets.

@MaamounBenhafsa
Last active September 29, 2022 09:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MaamounBenhafsa/bf996bf59009a5a2a60963b0673c7cbc to your computer and use it in GitHub Desktop.
Save MaamounBenhafsa/bf996bf59009a5a2a60963b0673c7cbc to your computer and use it in GitHub Desktop.
Barcode Simulator
from pynput.keyboard import Key, Controller
import time
keyboard = Controller()
time.sleep(3)
barcodes =['6925625449109','6132509340159','6134757000557','6920191235064','6915825825841','6133746000769','6134757005798']
for barcode in barcodes:
time.sleep(1)
for key in barcode:
print(key)
keyboard.press(key)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment