Answer the question
In order to leave comments, you need to log in
How to remove the actuation key (keyboard, programming)?
I want the trigger button to go away.
import keyboard
def s():
print('ХЕЛОУ, МОЙ СЛАДЕНЬКИЙ КОТИК)))))')
keyboard.add_hotkey('f', lambda: (s()))
input()
Answer the question
In order to leave comments, you need to log in
If "action button" means the "f" button, then it appears due to input().
That is, first you enter "f" into the console, which causes it to be displayed, after which the text is displayed (this can be checked by writing input("\n")).
Instead, you can use
import keyboard
import time
def s():
print('ХЕЛОУ, МОЙ СЛАДЕНЬКИЙ КОТИК)))))')
while True:
time.sleep(0.05)
if keyboard.is_pressed('f'):
s()
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question