Skip to content
This repository has been archived by the owner on Jul 28, 2024. It is now read-only.

Commit

Permalink
changed press to send
Browse files Browse the repository at this point in the history
  • Loading branch information
Vykonn committed Aug 3, 2023
1 parent da8def1 commit cb23f93
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions communicate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -43,23 +43,23 @@ 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:
if data["%s3" % inputm][0] == "cmd":
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:
if data["{}".format(inputm)][0] == "cmd":
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:
Expand Down

0 comments on commit cb23f93

Please sign in to comment.