I want to add it to my script but I've been looking for hours and didn't come up with an answer yet so I'm making my first post on stackoverflow. I'm looking for a way to hide my cursor, while still tracking the mouse movements and cursor position. I want this to happen everywhere on my windows. I tried Tkinter and Xlib but couldn't find a solution. For Xlib i checked this post but I'm not sure how to use the XDefineCursor in my code.
I found that post before, but apparently I didn't try the code. So after trying it, it worked out fine.