#๐Ÿ”’ help

24 messages ยท Page 1 of 1 (latest)

civic canopy
#

i wanna do code for pythone to him write /sellall and then click enter on minecraft server and i wanna him doing this ever 60sec can somebody help me i wanne use the code in the pycharm pls help.
to open chat the you need to clik t
on the photo is the commadn in minecraft

subtle reefBOT
#

@civic canopy

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

charred patrol
#

lol

civic canopy
#

bro pls im new in pythone

charred patrol
#

If you care more about doing the command then programming it on python, using a macro would probably be easier

civic canopy
#

ok

charred patrol
#

If u wanna do it via python importing pyautogui and time probably helps

civic canopy
#

can you write the script

charred patrol
#

nah

civic canopy
#

pls

charred patrol
#

meh

civic canopy
#

i do not iven know any comands

#

is that good ?

#

import pyautogui
import pygetwindow as gw
import time
import ctypes

ctypes.windll.kernel32.SetThreadExecutionState(0x80000002)

INTERVAL = 60
MC_WINDOW_NAME = "Minecraft"

time.sleep(10)

def focus_minecraft():
windows = gw.getWindowsWithTitle(MC_WINDOW_NAME)
if not windows:
return False
win = windows[0]
win.activate()
time.sleep(0.5)
return True

while True:
if focus_minecraft():
pyautogui.write("/sellall", interval=0.05)
pyautogui.press("enter")
time.sleep(INTERVAL)

subtle reefBOT
#

Hey @civic canopy!

Please edit your message to use a code block

```py
print('Hello, world!')
```

This will result in the following:

print('Hello, world!')```
civic canopy
#

is that good bro

#

or what shoud i change

charred patrol
#

You still need to open the chat window

sour canyon
#

/ usually automatically opens the chat window

civic canopy
#

wtf where is that

charred patrol
#

Oh I see

sour canyon
subtle reefBOT
#
Python help channel closed for inactivity

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.