This application lets ChatGPT directly control your PC using Python and AutoIt to hook into the Win32 API and Windows Runtime UI.
It can control the mouse and keyboard, read and click windows control elements, run any command, move, minimize and close windows, read and write to clipboard and more.
It utilizes the main OpenAI website's ChatGPT API underneath, instead of requiring costly and limited API keys.
- Here is is creating a command to read the text of my open notepad window, automatically replying back to ChatGPT with it's contents, and ChatGPT generating a new command back to windows based on that:
- Newer syntax 26/06/2023:
Before running the application, make sure you have the following prerequisites installed:
-
Python 3.x
-
Git
-
Clone the repository:
git clone https://github.com/Tophness/ChatGPT-PC-Controller.git
-
Change to the project directory:
cd ChatGPT-PC-Controller
-
Install the prerequisite Python libraries:
pip install -r requirements.txt
To use the program, follow these steps:
-
Open a terminal or command prompt and navigate to the project directory.
-
Run the
main.py
file:python main.py
-
Enter a goal for what you want ChatGPT to do to control your PC.
-
ChatGPT will generate a set of control commands.
-
Confirm whether you want to run it.
- Set config.ini's 'Unattended mode' to True if you like to live dangerously. It will run in an infinite loop allowing ChatGPT to make it's own decisions and explore everything it opens and reads on your computer without asking.
- You can also edit the 'Preprompt' setting to adjust the prompt that gets prepended to your command.
Contributions are welcome! If you find any issues or want to enhance the functionality of this application, feel free to open an issue or submit a pull request.
This project is licensed under the MIT License.