Jump to content

Recommended Posts

Posted

Hello everyone,

I'm currently working on a Minecraft Admin Tool and I'm experiencing problems to get it work with Forge. The project is build with C# (.NET 3.5) and for the key inputs the SendsKey API is used.

The problem is that even if the virtual key input is send to Minecraft, Minecraft does not react to it (e.g. sending the Key {ESCAPE} does not open the menu). This only happens when Forge is installed, so my question is: Are there any methods in Forge affecting the interaction with the Minecraft window? And how to possibly bypass the problem?

 

Thanks,

jke436

Posted

There should be nothing that effects the keyboard inpput, just make sure you're passing it to the correct window/applet.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Posted

I think my problem is that the Minecraft window is not brought to front properly because the focus isn't even set on the window. (Although using the SetForegroundWindow and the SetFocus API of the user32.dll) :(

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.