Skip to content

Nut.js unable to send key holds properly inside games #359

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

Closed
1 of 3 tasks
Bare7a opened this issue Jan 12, 2022 · 3 comments
Closed
1 of 3 tasks

Nut.js unable to send key holds properly inside games #359

Bare7a opened this issue Jan 12, 2022 · 3 comments
Milestone

Comments

@Bare7a
Copy link

Bare7a commented Jan 12, 2022

Version: 2.0.0

Issue occurs on:

  • Virtual machine
  • Docker container
  • Dev/Host system - Windows 11

Description:

When trying to use Nut.js in games, for some reason the inputs doesn't get triggered by the them.

One weird example is with Minecraft, where when I try to hold "W" for 5 seconds the character doesn't move, but if I enable the ingame chat, the "W" key appears. I've tried to press "W" multiple times before triggering the releaseKey function in Nut.js, but the result is the same - the character doesn't move, and if the chat is enabled I can see that the "W" key is actually spammed.

Single keyPress, single keyRelease
Multiple keyPress, single keyRelease

@Bare7a Bare7a changed the title Nut.js unable to send key holds properly Nut.js unable to send key holds properly inside games Jan 12, 2022
@cheul123a
Copy link

try run as admin i solved same problem with this.

@Bare7a
Copy link
Author

Bare7a commented Jan 13, 2022

try run as admin i solved same problem with this.

I've tried doing that and it still has the exact same problem, the interesting thing is that when I try using RobotJS it works.

@s1hofmann s1hofmann added this to the TipTap milestone Jan 17, 2022
@SteveDeWald
Copy link

I had this problem too. I think anticheat software might be interfering with it. RobotJS works though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants