C
C#•10mo ago
fritz9564

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?
No description
7 Replies
Omnissiah
Omnissiah•10mo ago
(you know in windows you can have more than 1 desktop right?)
fritz9564
fritz9564OP•10mo ago
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
Unknown User•10mo ago
Message Not Public
Sign In & Join Server To View
fritz9564
fritz9564OP•10mo ago
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?
Buddy
Buddy•10mo ago
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.
br4kejet
br4kejet•10mo ago
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)
fritz9564
fritz9564OP•10mo ago
That sounds like it is a better solution than Virtual Inputs. Thats what i will do. Thanks for the Awnsers 🙂
Want results from more Discord servers?
Add your server