PromptPrompt-BibliothekLizenz: CC0-1.0 (Public Domain)frei kopierbar
Automated Text Typing Every 5 Minutes with Python
Generiert ein Python-Skript, das per pyautogui automatisch in festen Intervallen Text eintippt.
⧉ –× kopiert⬇ –× heruntergeladenBewertung:
Generiert ein Python-Skript, das per pyautogui automatisch in festen Intervallen Text eintippt.
Der Prompt
Act as a Python Automation Engineer. You are skilled in creating scripts that automate repetitive tasks. Your task is to develop a Python script that types a specified text automatically every ${interval:5} minutes on any writable interface. The timer should be customizable.
You will:
- Use the `pyautogui` library to simulate keyboard input
- Implement a customizable timer using the `time` library
- Ensure the script runs continuously and types the text on any writable interface
Example Script:
```python
import pyautogui
import time
def auto_typing(text, interval):
while True:
pyautogui.typewrite(text)
time.sleep(interval)
if __name__ == "__main__":
# Customize your text and interval here
text_to_type = "Your text here"
time_interval = 300 # every 5 minutes
auto_typing(text_to_type, time_interval)
To convert the Python script to an executable (.exe) file, follow these steps:
- Install PyInstaller: Open your terminal or command prompt and run:
pip install pyinstaller - Create Executable: Navigate to the directory containing your Python script and execute:
pyinstaller --onefile your_script_name.py - Find the .exe File: After running PyInstaller, the executable will be located in the
distfolder.
Rules:
- The script must run without manual keyboard interaction
- Ensure the interval and text are easy to update
- The script should be efficient and lightweight
## So nutzt du es
Den Prompt-Text kopieren (Button oben) und als System-Prompt bzw. erste Nachricht in ChatGPT, Claude oder einem lokalen Modell einfügen. In ChatGPT lässt er sich unter „Anweisungen für ChatGPT" dauerhaft hinterlegen.
Der Prompt-Text ist englisch — er funktioniert trotzdem in deutschen Unterhaltungen. Für deutsche Antworten einfach am Ende ergänzen: „Antworte auf Deutsch."
## Im Detail
Lässt die KI ein Python-Skript mit pyautogui generieren, das in frei wählbarem Zeitintervall automatisch Text in jedes fokussierte Fenster tippt, plus Anleitung zur Umwandlung in eine .exe. Praktisch für simple Automatisierungen wie wiederkehrende Statusmeldungen. Wichtig zu wissen: pyautogui simuliert echte Tastatureingaben systemweit, das kann gegen Nutzungsbedingungen mancher Plattformen verstoßen und sollte nie für Spam oder verdeckte Automatisierung eingesetzt werden – nur für eigene, legitime Zwecke auf dem eigenen Rechner.
## Praxis-Tipp
Gib Text und Intervall direkt vor, z. B. „Tippe alle 10 Minuten ‚Pause‘ automatisch ins aktive Fenster“, und lass dir zusätzlich die exe-Anleitung ausgeben.
## Siehe auch
- [Any Programming Language to Python Converter](/ki-verzeichnis/openai-chatgpt/any-programming-language-to-python-converter/)
## Lizenz & Quelle
- **Lizenz:** CC0-1.0 (Public Domain)
- **Quelle:** [awesome-chatgpt-prompts (GitHub)](https://github.com/f/awesome-chatgpt-prompts)
Inhalt ansehen (automated-text-typing-every-5-minutes-with-python.txt)
Lade …
Erfahrungen & Kommentare.
Funktioniert der Prompt bei Ihnen? Tipps, Stolperfallen, Varianten — teilen Sie es mit der Community.
Lade Kommentare …
Passt dazu.
aa/cli taste
Legt feste Tech- und Stilvorgaben für CLI-Projekte fest (pnpm, TypeScript, Commander.js, Ordnerstruktur).
CC0-1.0 (Public Domain)★ –♥ –⧉ –
Accessibility Auditor
Lässt ChatGPT als Accessibility-Experte eine Website auf WCAG-2.2- und Section-508-Konformität prüfen.
CC0-1.0 (Public Domain)★ –♥ –⧉ –
Analyze code scanning security issues and dependency updates if vulnerable
Priorisiert GHAS-Sicherheitsalerts über Repos hinweg und trennt Dependency- von Base-Image-Ursachen.
CC0-1.0 (Public Domain)★ –♥ –⧉ –
