Skip to content

Once ran, this Python script is always active unless you terminate the script or press Shift + ESC. When Left Shift + b is pressed, you will empty out the entire chest/shulker box. When Left Shift + ` is pressed, you will empty out one line in the chest/shulker box. (This can also apply to your inventory!)

License

Notifications You must be signed in to change notification settings

kennerhartman/clearchest-macro-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

Once ran, this Python script is always active unless you terminate the script or press Shift + ESC.

Once ran, this Python script is always active unless you terminate the script or press L SHIFT + ESC.

  • When L SHIFT + b is pressed, you will empty out the entire chest/shulker box.

  • When L SHIFT + ` is pressed, you will empty out one line in the chest/shulker box.

  • When L CTRL + L SHIFT + a is pressed, you can change how many lines you clear from a chest/shulker. Default times is 3. You will need to manually activate the terminal window to type in a value. If you enter a string, you will be prompted to press L CTRL + L SHIFT + a again to change how many lines you clear from a chest/shulker.

    • Upon entering a value, the script will "remember" your input so when you close the script and later reopen it, it will still use the value you inputted. There is no need to create a config.json file; that is handled by the script.
    • You can now use a window process instead of CLI. To enable this feature, go to config.json and change "CLI": true to "CLI": false. Keep in mind that you will have to manually go to and manually terminate the window in order to terminate the script with L SHIFT + ESC.

I originally had this idea programmed in the LUA scripting language to work with my Logitech G-502 mouse, but I wanted to expand compatibility to my non-Logitech keyboard.

Compatibility

This script works for the following operating system(s):

Modules Used

  • mouse: receives mouse inputs, emulates mouse inputs, receives cursor position, and sets cursor position
  • keyboard: receives keyboard inputs and emulates keyboard inputs
  • pygetwindow: for this script, allows the script to access Windows processes and know what Window is active
  • customtkinter: creates a modern Python UI; a library based upon tkinter

Built-in Python Libraries:

  • time: suspend script execution
  • json: read and write to json files
  • os: used to create a config.json file and append data, if not present
  • re: used to check Window titles and easily split the titles to get the value I desire to get

License

This project uses the MIT license. Please ensure you retain the license notice if you use any part of my program. For more information about the licensing of this project, please see LICENSE.md.

About

Once ran, this Python script is always active unless you terminate the script or press Shift + ESC. When Left Shift + b is pressed, you will empty out the entire chest/shulker box. When Left Shift + ` is pressed, you will empty out one line in the chest/shulker box. (This can also apply to your inventory!)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages