Send commands to minimized minecraft

Ask gaming related questions
7M8
Posts: 2
Joined: 10 Jul 2018, 05:55

Send commands to minimized minecraft

10 Jul 2018, 06:13

Hi there.

I want to make a code that will press / and then type sell all and press enter.

It works well with Send command while I'm in the game but I want it to work while the game is in the background and I'm browsing or whatever..

Here's the code I've right now:

Code: [Select all] [Download] GeSHi © Codebox Plus

*F1::
loop{
ControlSend, ,/, Minecraft 1.12.2
sleep 500
ControlSend, ,sell all{enter}, Minecraft 1.12.2
Sleep 60000
}
Return

#p::Pause,Toggle


But it doesn't work.. I know when you change the window of minecraft, the "Game Menu" will appear and block chat, I think this is the problem..

Is there a way I can achieve this?
7M8
Posts: 2
Joined: 10 Jul 2018, 05:55

Re: Send commands to minimized minecraft

10 Jul 2018, 11:25

I solved this by using minecraft in borderless window mode + disabling the game menu, it also didn't write the command properly so I had to use SetKeyDelay.

So the final code is:

Code: [Select all] [Expand] [Download] (AutoSell.ahk)GeSHi © Codebox Plus


Return to “Gaming”

Who is online

Users browsing this forum: No registered users and 5 guests