Greetings! I would like to introduce myself as a newbie to the micro-controller world with the intention of learning. I am thinking of making a arduino based macro or automation tool for strategy games and general office use.
The intention is to configure a Arduino as a HID Device most likely a Mouse via the Mouse library (https://www.arduino.cc/reference/en/language/functions/usb/mouse/) and send serial command to it via the Serial library to do certain tasks such as clicking a button on a UI or moving the mouse in a square only when a client side script, in python send the Arduino a special letter. The idea is to program the arduino with pre-set mouse macros in functions and make it listen to the serial port so when a client side script sends it a command like the letter (C) it will execute the a function associated with this special character which will move the mouse in a special way.
NOTE (I would like to make the mouse moves accurate up to a millisecond, therefor a side question is that is the delay() command in the arduino environment accurate up to a millisecond)
I have over the few days learned some Arduino Code and i believe this will work, Please Note I HAVE NOT YET BOUGHT an Arduino.
I would like some advice if this project is feasible and which Arduino Mode is best suited for this purpose? (i was think of a Leonardo) and can i achieve millisecond accuracy with the delay() method in arduino?