Pepijn de Vos

Results 186 comments of Pepijn de Vos

You could append incoming events to a string and check if it ends with "start"

Cool. I believe Mac has something like universal key codes, right? So mostly a Windows/Linux issue? I remember there was some discussion about this in another issue.

I believe the latter. What video games do is move your mouse to the center of the screen, and record the movement from there. But if you're writing a game,...

Is there a stacktrace? Likely a bug in PyHook, which we use for events on Windows. http://stackoverflow.com/questions/27363268/how-can-i-avoid-typeerror-mouseswitch-missing-8-required-positional-arguments https://sourceforge.net/p/pyhook/bugs/1/ Unfortunately the project doesn't seem to be maintained. This leaves us in...

I'd be in favour of replacing PyHook with ctypes or cffi if anyone has the knowledge and time to pull it off. I certainly don't with exams coming up.

I would not be surprised if this is a security measure. Did you try if any of the individual keys work? Like, try deleting some text, or sending a CTRL+V....

That's hilarious. I'm not sure what to do about it. You could test with separate press and release commands with delays inbetween to see what happen. I'm not really a...

Special-casing Gnome sounds like a bad idea. Before you know it we need code for every DE out there. We need a general solution for this. I mean, if you...

I'd insta-merge a PR on https://github.com/PyUserInput/PyUserInput for such a type coercion, but I have an exam today, so I don't have the time to write and test a patch.

Make sure X11 is running before you start the script.