Use arduino leonardo to simulate mouse and keyboard

I am a rookie in arduino and I want to know whether my plan is feasible.

I have already learned that arduino leonardo can simulate mouse and keyboard. However, I want to use a C++/Python script to tell arduino leonardo which key to press, then arduino leonardo can simulate the keyboard and mouse operation. Just like the graph shows below:

You may wonder why not using script to control mouse and keyboard directly, such as pyautogui in python. The reason is some programs on computer will block these scripts.(Many AAA PC games such as sekiro and dark souls).

Would you please tell me whether my plan is feasible? If so, how to do ? I am looking forward to your reply and thanks in advance!

A serial link from the PC to the Leo to send requests for keystrokes to which the Leo responds

1 Like

Lots on google ….

Example

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.