I want to make a script based on Python that can automate key press, mouse actions etc. as if they are entered manually.
Some packages or modules known : PyAutoGUI, XLib wrapper
Similar to the above, is there any package available from GI family that allows automation ? (At least that works in X11 or Wayland or GNOME desktop)
Workaround I have for now :
I managed to get windows using Wnck. Then using their XID, I got the X11 Window using GdkX11. After that I could put the events using Gdk.Display.put_event.
But the process of making Gdk.Event is confusing me. (What properties should be set, how they should be initialised etc.)
Any other module or idea or way you have for simulating actions ?
Thanks in advance