Sending Virtual Inputs in a background window, possible?
Hello, i wrote this programm that sends Virtual Inputs in Minecraft (using InputSimulator) and moves the player for me. It is working just fine, however it would be great if Minecraft wouldn't have to be focused while running it. Is there a way to do this?
7 Replies
(you know in windows you can have more than 1 desktop right?)
No i didn't know, i will try it out and see if it works, thx
When i start the programm on the second Desktop and switch back to the Main Desktop the programm continues there. I think i need find a way without "SetForegroundWindow()"
Unknown User•10mo ago
Message Not Public
Sign In & Join Server To View
I am pretty new to Programming, do you think it is worth it to lern how the minecraft api works and do it that way or might there be a easy workaround? Is doing that with the api to hard for a beginner?
Making a bot in Minecraft is a gray area I personally don't want to help with, it is a gray area because Mojang themselves allow it, but the server owners however do not tolerate automation, cheating, macros, etc. Of course depending on which server it is.
You could just use a forge mod?
If not then you could enable the debugger in the java startup args which lets you connect though I think JDWP or some sort of debug protocol, then write a java app that directly calls minecraft functions if you can get the forge environment setup (without using forge libraries ofc)
That sounds like it is a better solution than Virtual Inputs. Thats what i will do. Thanks for the Awnsers 🙂