WinGPTAssistant is a GPT-4 powered assistant designed to boost productivity and prevent distractions in Windows. This assistant operates directly within the program you are using, without needing to open a browser or switch to another application. WinGPTAssistant provides seamless support across various programs including chat, email, text editing, WhatsApp, and more.
- Works across all applications (WhatsApp, email, text editors, etc.)
- Real-time weather and date information
- Google search and image search
- Play music on YouTube Music
- Clipboard integration for seamless operation
- Python Installation: Make sure you have Python installed on your system. You can download it from Python's official website.
- Windows aText Installation: Install Windows aText from the Microsoft Store. You can get it here.
- Clone the repository:
git clone https://github.com/username/WinGPTAssistant.git
- Navigate to the project directory:
cd WinGPTAssistant - Install the required Python packages:
Alternatively, you can install the packages manually:
pip install -r requirements.txt
pip install openai pyperclip logging pyautogui requests webbrowser
- Configure your API keys in gpt_request.py:
openai.api_key = "your-openai-api-key" weather_api_key = "your-weather-api-key"
- Run the PowerShell script to initiate clipboard operations:
./clipboard.ps1
To create a new snippet and assign a shortcut (e.g., Shift+J), follow these steps:
- Open aText and go to the "New Snippet" option.
- Choose "PowerShell" as the script type.
- Assign a shortcut (e.g., Shift+J).
- Write something in a text editor and select it.
- Press the assigned shortcut (e.g., Shift+J).
- After a few seconds, the GPT-4 generated response will be pasted in place of the selected text.
# Copy selected text to clipboard
Add-Type -AssemblyName System.Windows.Forms
[System.Windows.Forms.SendKeys]::SendWait("^c")
Start-Sleep -Milliseconds 300 # Increased wait time
# Get text from clipboard
$input_text = Get-Clipboard
# Run Python script and get the result
$output_text = & "C:/Users/$YOURNAME/AppData/Local/Programs/Python/Python312/python.exe" "C:/Users/$YOURNAME/WinGPTAssistant/gpt_request.py"
# Copying and pasting operations will be handled in the Python script