-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In some games, special keys can't be triggered #228
Comments
Thank you for the report. You wrote "in some games" does that mean that in general it works? |
When I use the physical keyboard in the game, it all triggers the skills properly. But using enigo doesn't trigger it. |
Can you please open Notepad and then run this slightly changed example
Please try to press a letter key on your physical keyboard during the 5 seconds the example sleeps. If the letter is capitalized, we know that the Shift key works in general. Then we know that there must be some special case with the game |
It works fine in Notepad and other editors. But not in Guild Wars 2, I don't know why. |
Okay, thank you. That helps already to narrow it down. I probably need some time for this to investigate the issue. |
And in-game chatting also works, just not when binding skills. |
Maybe the old API to simulate input will work. Could you please try this changed example:
I don't know which other keys you want to press in order to see if Key::LShift works. Feel free to change this part of the example:
|
This example also does not trigger any skills that are tied to special keys (Shift and F1-F12 etc...) I tried to simulate it using Python's Keyboard module and it works fine. |
Okay, thank you for trying it out. Back to the drawing board :/ |
The same issue occurs with the game "Star Citizen" |
Apparently it is best to send both, the scan code and the virtual key, in order for all programs to register the key input properly (e.g something like this https://github.com/Narsil/rdev/pull/113/files). Maybe that would solve this issue as well |
Some programs seem to only read one of the two options. This should fix enigo-rs#228
Some programs seem to only read one of the two options. This should fix enigo-rs#228
I created #280, which might address this issue. It would be great if you could test it to see if it fixes it. |
Same issue with |
I also was having issues with controlling games on Windows 10 as well with enigo I tried out your PR @pentamassiv in my Cargo.toml using Thank you for the fix! I am looking forward to its release. |
That's great to hear, thank you for testing it. I will merge it within the next week and publish a new version :-) |
Some programs seem to only read one of the two options. This should fix enigo-rs#228
Some programs seem to only read one of the two options. This should fix enigo-rs#228
Some programs seem to only read one of the two options. This should fix enigo-rs#228
Some programs seem to only read one of the two options. This should fix enigo-rs#228
Some programs seem to only read one of the two options. This should fix enigo-rs#228
Some programs seem to only read one of the two options. Fixes enigo-rs#228
Describe the bug A clear and concise description of what the bug is.
In some games, special keys can't be triggered.
To Reproduce Steps or a minimal code example to reproduce the behavior.
for example:
But letters work fine:
Expected behavior A clear and concise description of what you expected to happen.
The game I tested was Guild Wars 2.
LeftShift button bound to the skill, but it won't trigger.
I want to be able to trigger skills properly.
Environment (please complete the following information):
Additional context Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: