Grégory Millasseau

Results 7 comments of Grégory Millasseau

the second line is working if you use the `KeyCode.from_char` class instead: python3 -c "import pynput; pynput.keyboard.Controller().press(pynput.keyboard.KeyCode.from_char('a'))" but you can also use the plain character as argument to the `press`...

while the expression was wrong, it seems that I was wrong too : it doesn't work with Xvfb. Here's a minimal example exhibiting the issue, with the following Dockerfile: ```...

@yannrichet yeah, fixed the Dockerfile in my comment to set the $DISPLAY variable properly

I get the same values as the original JavaScript lib, I have not the mathemetical backgound to go further than that.

Hi, When you say you got it working, you mean you made some changes in the code? If so you're more than welcome to submit a pull request. About the...

Hi, The PHP function `setTimestamp` takes an integer, so the real difference between you two tests is one second, not one microsecond. Plus, the angle is within ]-π; π] and...

The syntax `(new DateTime())->getTimezone()`, ie. calling a method directly on a newly created object, was introduced in PHP 5.4. You'll have to use a intermediary variable.