#๐ help
24 messages ยท Page 1 of 1 (latest)
@civic canopy
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.
lol
bro pls im new in pythone
If you care more about doing the command then programming it on python, using a macro would probably be easier
ok
If u wanna do it via python importing pyautogui and time probably helps
can you write the script
nah
pls
meh
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)
Hey @civic canopy!
```py
print('Hello, world!')
```
This will result in the following:
print('Hello, world!')```
You still need to open the chat window
/ usually automatically opens the chat window
wtf where is that
Oh I see
This is Windows-specific if it even works
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.