(Python coding) How to detect mouse click or keyboard input

preview_player
Показать описание
#python #coding #mouse #click #keyboard #input #keypress #programming #macro #shortcut #win32api

Let's make a code to detect click or key press in python with win32api.
Рекомендации по теме
Комментарии
Автор

Mega mega respect. It's been 2 years and you're still answering comments! Thanks alot, you're my go-to teacher for python <3

silkatouch
Автор

I have respect for you. You answer all the comments and give awesome tutorials. Thanks!

wishib.
Автор

Wowww. THANKS BRO i been searching this for 2 hours

phcoog
Автор

It helped me with my problem. Thank you.

PLAYHARD
Автор

Thanks. Just what I've been searching.

CISFscm
Автор

Thanks, I am writing a macros and it's very useful for me!

sabix
Автор

Tego właśnie potrzebowałem! Dzięki. Na polskim yt tego nie było 😢.

That I just need. Thank you. In the polish yt it don't be.

krzemienpasiasty
Автор

Oh, man! you are very good !!! (sorry i'm from brazil and i don't speak much english)you spelled it right!
thanks!!!

kenozos
Автор

How do i make it so that it only does it if you press it not hold it down?

jjophoven
Автор

Excellent, if I had 2 keyboards connected how could I only hear one specific one. Could it?

ingjuanz
Автор

Will this work if the program is not in focus such as while in Google?

PandaHut
Автор

This works in the terminal but when I run it on file it gives an error saying that it can't find win32api. Can anyone help me?

jjophoven
Автор

thank u so fucking much. Thats exactly i need

Whisper
Автор

are there similiar instructions on pyautogui?

kehhfvk
Автор

I'm sorry sir for this question. I hope you have warm heart to answer me. I'm a video editor.
But I want make application that can read what key press even this application is not focused/active (show behind other window)

Can you give me advice or recommendation. How to code that application still can run and can read/get keypressed even it is not focused/active.

I've make a application to show what button press, but when it goes to other apps. It can't read/know what key I have press. Sorry for my english, thanks. I'm very respectfull if you want answer my question.

bodgaming
Автор

Hi! May I use this to work with Python in Linux systems? I mean.. will these interaction codes be the same? and then, will this library work with my OS (Mint)? thank you!

gonzalopighin
Автор

Will it support in linux based os
Am using an raspberry pi but when i installed pywin32 its showing no library can i get an alternative please

ajmalashraf
Автор

getiing error 👇
File "automate.py", line 8, in <module>
import win32api
ImportError: DLL load failed: The specified module could not be found.

madygamers
Автор

That was really helpful Dude ! Thanks a lot.✌✌ I'LL BE REALLY GRATEFUL IF YOU COULD ALSO HELP ME WITH DETECTING DOUBLE CLICKS 👀

kashishrana
Автор

︎ ︎ ︎ ︎ ︎ ︎ ︎ ︎ ︎ ︎ ︎ ︎ ︎ ︎ ︎ ︎ ︎ ︎ ︎ ︎ ︎ ︎ ︎ ︎ ︎ ︎ ︎ ︎

samppuli