import pywhatkit
from datetime import datetime
from dateutil.relativedelta import relativedelta
import sys
telefono = sys.argv[1] # int(input("ESCRIBE EL TELEFONO:"))
folio = sys.argv[2] # int(input("ESCRIBE EL FOLIO:"))
current_time = datetime.now()
n = 2
future_time = current_time + relativedelta(minutes=n)
pywhatkit.sendwhatmsg("+521"+str(telefono), "https://barcode.tec-it.com/barcode.ashx?data="+str(folio)+"&code=Code128&translate-esc=on", int(future_time.strftime('%H')), int(future_time.strftime('%M')))
then use
pyinstaller to create a .exe and run like this:
myprogram.exe 0000000000 000000
No hay comentarios:
Publicar un comentario