Last active
November 9, 2024 14:53
-
-
Save jayz3314/66e9ea721c75bf018e421e1e42271467 to your computer and use it in GitHub Desktop.
How to repeatedly delete minecraft chat messages
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # You can copy-paste this into IDLE or download the file | |
| # These are our dependencies | |
| # You have to be full-screened in Minecraft for this to work | |
| from pynput.keyboard import Key, Controller | |
| import subprocess | |
| import time | |
| keyboard = Controller() | |
| # Now, let's start configuring our scripts. | |
| def chatdelete(): | |
| keyboard.press(Key.f3) | |
| keyboard.press('d') | |
| keyboard.release('d') | |
| keyboard.release(Key.f3) | |
| # Finally, let's run everything! | |
| while True: | |
| chatdelete() | |
| time.sleep(1) | |
| # This should do it! Remember, make sure you have python3 and you have installed | |
| # pynput. Here's how to do it: | |
| # Run this command in shell: | |
| # pip3 install pynput |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment