How to Send Clicks and Key Strokes to Any Application

preview_player
Показать описание
In this video, I teach you how to write a simple console app that can send key strokes and mouse clicks to any other application in Windows, and show you an example to automate actions in Minecraft.

Join us:
Рекомендации по теме
Комментарии
Автор

Thanks for much for this! I spent like 6 hours today struggling to submit keystrokes to elden ring. The KeyDown followed by KeyUp did the job.

elitegoat
Автор

I forgot where my head was. and I found your video. boom.. my problem is solved. You saved my life. I feel I have a head again, I pray that you are always healthy

gabisaintro
Автор

EXACTLY what I've been looking for!

TheTubejunky
Автор

I work in industrial automation. We have equipment that we purchased, but it doesn't have any IO. The manufacturer doesn't provide an API or dll to get at the data, so we have to make something.
This video gives me a good starting point . Thanks!!

JB-thbx
Автор

Thank you for this video, your program helped me a lot!

sunrise
Автор

Still updating my code all inspired by this channel. I realized he didn't dig deep but it was a start. Fun for p2w servers.
I can do much more that this video shows but I will not share too much.

TheTubejunky
Автор

I'd use background workers or tasks running async instead of in the main thread. Thus not allowing cancellation or inputs. But I guess it's not really needed in this case 😅

Robber
Автор

Hi. can you make a tutorial on how to send those keyPress to a background window?

MomoMomo-yitv
Автор

Im trying to send the keys but im getting an error: using system.windows.forms not found anyone know how to fix that ?

albertgrzegrzoka
Автор

can i do this to 2 windows simultniosuly?

Sussy_Boy
Автор

bro u seem to be such a great person :D thx for the help!!
it will help me a lot to farn afk on my mob trap :D

ioko
Автор

is there a way to automate my clicks on a specific position of my screen?

Qndrew
Автор

An application for games with multi-accounts and you select by process id would be great

jarjava
Автор

hi, just wondering is it possible to do all this in inactive window?

muhammadfarouqrafie
Автор

10:34 I tried to do it again on my PC but it doesn't work. How can I solve it?

lux
Автор

Hi sir, Can you run in maplestory ?
Or give me some suggest. thx :)

knarf
Автор

Today I went further and wrote a 4-commands scriptable farming bot for Minecraft to help my child. It works fine but demand Minecraft being foreground. So if you solve this please point me how :)

PS: PostMessage(.., WM_KEYDOWN, ..) doesn't work...

cdgAxel
Автор

Is is possible to send keystrokes to a process window which is not active "minimized" also without focusing the window that we have send the keystrokes to ?

CyberScence
Автор

Hi. One question. It's possible to send mouse click on hidden or minimized application? Thanks

andreadotta
Автор

Does anyone else have an error stating that Forms doesn't exist in System.Windows

pupterupt