well that's some hacky stuff I'm fine with it, though, since what I'm working on is mostly for personal use. So, thanks a lot for the explanation! I'll give it a shot later.
edit: I had to make some adjustments to your example (because lite-c syntax ._.) but I got it working now. Still have to test it with SetCursor, though.