Posts: 2
Joined: Sun Jun 24, 2018 9:49 pm

Can python simulate keystrokes?

Sun Jun 24, 2018 9:54 pm

Hello! I am trying to make a program in python where it types stuff into the active window and waits a certain amount of time then loops
I don't know how to loop yet either because I'm a "beginner" to python.
I only know time.sleep(120) (I'll be using that)
Any help? Thanks! :D

User avatar
Posts: 5189
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Can python simulate keystrokes?

Mon Jun 25, 2018 2:40 pm

Yes, python can simulate keyboard using something called "uinput"

But you should learn "for" loops ( and a lot of other things ) first.. :D

Return to “Python”