This file contains 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
import time | |
import os | |
def print_heart(): | |
"""Displays a heart with a love message.""" | |
heart = ''' | |
***** ***** | |
** ** ** ** | |
** ** ** | |
** ** |
This file contains 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) |