From cb23f93ef553865d49a7b1990e9069fc7c67f06d Mon Sep 17 00:00:00 2001 From: Vykonn Date: Thu, 3 Aug 2023 13:10:30 -0400 Subject: [PATCH] changed press to send --- communicate.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/communicate.py b/communicate.py index e8b2175..9d17585 100644 --- a/communicate.py +++ b/communicate.py @@ -34,7 +34,7 @@ def handleinput(input): commande = data["%s1" % inputm][1] command = True else: - keyboard.press("+".join(data["%s1" % inputm])) + keyboard.send("+".join(data["%s1" % inputm])) if input[0] == 176: if input[2] == 127: ##LEFT INPUT - 2 @@ -43,7 +43,7 @@ def handleinput(input): commande = data["%s2" % inputm][1] command = True else: - keyboard.press("+".join(data["%s2" % inputm])) + keyboard.send("+".join(data["%s2" % inputm])) if input[2] == 1: ##RIGHT INPUT - 3 if "%s3" % inputm in data: @@ -51,7 +51,7 @@ def handleinput(input): commande = data["%s3" % inputm][1] command = True else: - keyboard.press("+".join(data["%s3" % inputm])) + keyboard.send("+".join(data["%s3" % inputm])) else: if input[2] >= 1: if "{}".format(inputm) in data: @@ -59,7 +59,7 @@ def handleinput(input): commande = data["%s" % input[1]][1] command = True else: - keyboard.press("+".join(data["%s" % input[1]])) + keyboard.send("+".join(data["%s" % input[1]])) if command: return commande else: