I had this need and maybe others might have it.
A tool to record mouse events and play them back. It is an adaptation of a well-known project presented by LazPlanet.
The video only demonstrates the possibilities (Drag and drop, Wheel, clicks...).
More experienced programmers will be able to improve it.
I hope it helps someone at some point.
Thanks to LazPlanet.
Sorry, Windows only.
https://youtu.be/-uFOus51x6kAn update:
1) Implemented HOTKEYS (unit kl.pas) to start and stop recording.
Thanks:
https://forum.lazarus.freepascal.org/index.php/topic,37049.msg365574.html#msg365574 2) Created Thook Class (clashook.pas) for mouse events.
Thanks: Lazplanet
This way the code in fmain1 is clean. And most importantly: no more exceptions errors.
Again: Experienced programmers can improve and correct possible implementation errors.
It is also possible to include keyboard activities in macros.
The name of the project: keylogger. Inherited from the adaptation of this project:
https://forum.lazarus.freepascal.org/index.php/topic,37049.msg365574.html#msg365574 Remember: It works as is. Improvements and proper coding are up to each individual.