Last active
September 29, 2022 09:27
-
-
Save MaamounBenhafsa/bf996bf59009a5a2a60963b0673c7cbc to your computer and use it in GitHub Desktop.
Barcode Simulator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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