This Python script allows you to check if a Java process (javaw.exe
) is running on your system, and allows you to intergrate your own code that only works when javaw.exe is running, this is made for minecraft.
- Python 3.x
- psutil library (install using
pip install psutil
)
- Clone or download the repository to your local machine.
- Make sure you have the
psutil
library installed by runningpip install psutil
. - Open the script file
main.py
in a text editor. - intergrate your code within the
run_autoclicker
function. - Save the file.
- Run the script by executing
py main.py
in command prompt.
The script performs the following steps:
- It checks if a Java process (
javaw.exe
) is running on your system. - If a Java process is found, it displays a message "Instance Found."
- It then executes the
run_autoclicker
function, where you can add your own code. - If no Java process is found, it displays a message "No Instance of Java Found."
- The script continues to check for the presence of the Java process in an infinite loop with a 1-second delay between checks.
To integrate your own code into the script:
- Open the script file
main.py
in a text editor. - Locate the
run_autoclicker
function within the script. - Replace the existing
print
statement with your code. - Save the script file.
- Can be located in the screenshots folder.
If you have any questions, suggestions, or need assistance, please join our Discord Server.