البرمجة
الكتابة التلقائية للنص كل 5 دقائق باستخدام Python
Automated Text Typing Every 5 Minutes with Python
ينشئ نص Python يعمل باستمرار لكتابة نص محدد تلقائيًا في أي واجهة قابلة للكتابة، مع إمكانية تخصيص الفاصل الزمني. كما يقدّم خطوات تحويل النص إلى ملف .exe باستخدام PyInstaller.
- تم اختباره مع:
- GPT-4o
- الفعالية:
- 95/100
- أرشيف المحفزات
نسخة العربية
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:
1. **Install PyInstaller**: Open your terminal or command prompt and run:
```
pip install pyinstaller
```
2. **Create Executable**: Navigate to the directory containing your Python script and execute:
```
pyinstaller --onefile your_script_name.py
```
3. **Find the .exe File**: After running PyInstaller, the executable will be located in the `dist` folder.
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املأ الحقول ثم شغّل
يحتوي هذا المحفز على 1 حقول للتعبئة. املأها وسنجمّع لك المحفز النهائي.
بقي 1
المحفز النهائي
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:
1. **Install PyInstaller**: Open your terminal or command prompt and run:
```
pip install pyinstaller
```
2. **Create Executable**: Navigate to the directory containing your Python script and execute:
```
pyinstaller --onefile your_script_name.py
```
3. **Find the .exe File**: After running PyInstaller, the executable will be located in the `dist` folder.
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- فتح في ChatGPT (يفتح في تبويب جديد)
- فتح في Claude (يفتح في تبويب جديد)
- فتح في Gemini (يفتح في تبويب جديد)
لا يمكن لـ Gemini استلام المحفز عبر رابط، انسخه أولًا.
- فتح في Perplexity (يفتح في تبويب جديد)
يفتح في تبويب جديد والمحفز مكتوب مسبقًا. قد تحتاج إلى تسجيل الدخول.
كيفية استخدام هذا المحفز
- استبدل كل ما بين الأقواس المربعة بمعلوماتك قبل الإرسال.
- تختلف النتائج بين النماذج. إذا لم يكن الناتج مناسبًا، جرّب نموذجًا آخر أو أضف مثالًا محددًا.
- أرسل المحفز في رسالة واحدة. تقسيمه على عدة رسائل يُضعف التعليمات.