This Python script uses the PyAutoGUI library to simulate typing code into the currently open window. This script also has options to remove indentation, skip closing braces, and remove extra code at the end of entered code, which might be helpful when typing code into an IDE or text editor.
- π₯ REMOVE_INDENTATION: Removes indentation from the code block.
- π₯ SKIP_CLOSING_BRACKETS: Skips over closing brackets when being typed into the active window.
- ποΈ DELETE_AFTER_END: Deletes everything after the typed code.
- π Python 3.x
- π οΈ PyAutoGUI library: To install it using pip run the following command
pip install pyautogui
- πΎ Clone the repository to your device.
- π¦ Install the required packages.
- βοΈ Edit the
CODE
variable with the code you want to type. - π οΈ Adjust the settings as per your requirement.
- π Run the script using the following command
python code_auto_typer.py
- Use this script with caution; if improperly used, it may result in undesirable actions on your system.
- Before using the script on your primary system, it is always a good idea to test it in a virtual environment or on a different device.
Feel free to contribute to this project by submitting a pull request π. Any suggestions or bug reports are also welcome π¬.