Dear community,
I am currently looking to create a program that can simulate mouse movements and keyboard inputs on my computer using a Raspberry Pi. I was wondering if anyone has any suggestions on which Raspberry Pi model would be best for this task, as I have heard that the Pico or Zero models may work well. Why these two?
Additionally, I am curious if it is possible to emulate the keyboard and mouse without physically inserting the Raspberry Pi between the keyboard and mouse. Can the Raspberry Pi be attached to the computer in some other way to achieve this desired outcome?
Thank you in advance for any insights or advice you can offer me.
-
- Posts: 1
- Joined: Wed Jun 07, 2023 9:26 am
-
- Posts: 7761
- Joined: Sat Aug 18, 2012 2:33 pm
Re: input simulation
to emulate any usb device, you need to have access to the usb controller, and it needs to be able to run in device modehitica9601 wrote: ↑Wed Jun 07, 2023 9:30 amas I have heard that the Pico or Zero models may work well. Why these two?
the pico can do both host/device, and exposes it directly on the micro-usb port
the zero's can do both host/device, and expose it directly on the micro-usb port
and the pi4/pi400 can do both host/device, and expose it directly on the usb-c port
but the model B pi1/pi2/pi3, are all behind the host end of a usb hub, which forces it to only work in host mode, even if the SoC is device capable
you can just plug the pico/pi0/pi4/pi400 directly into the computer and ignore whatever other mouse/keyb you havehitica9601 wrote: ↑Wed Jun 07, 2023 9:30 amAdditionally, I am curious if it is possible to emulate the keyboard and mouse without physically inserting the Raspberry Pi between the keyboard and mouse. Can the Raspberry Pi be attached to the computer in some other way to achieve this desired outcome?
-
- Posts: 177
- Joined: Wed Nov 20, 2019 6:59 pm
Re: input simulation
If using a Pi then you could look at:
https://github.com/jordansissel/xdotool
https://github.com/ReimuNotMoe/ydotool
https://git.sr.ht/~geb/dotool
https://github.com/jordansissel/xdotool
https://github.com/ReimuNotMoe/ydotool
https://git.sr.ht/~geb/dotool