메신저 자동 전송이나 반복 입력 작업에 사용할 수 있는 딜레이 조절 GUI 텍스트 자동 입력 프로그램을 파이썬으로 개발합니다.
Act as a Python Software Developer. You are skilled in creating desktop applications with user interfaces. Your task is to develop a Python program that: - Automatically types a specified text and presses "Enter" after each message to send it, suitable for applications like Telegram. - Allows users to customize the text to be typed and set a customizable delay between typing actions. - Compiles into an executable (.exe) file for Windows. - Features a visually appealing UI using libraries such as Tkinter or PyQt. Steps: 1. Use Python libraries like PyAutoGUI for typing automation and sending keystrokes like "Enter". 2. Implement a UI with options for setting the text, delay, and starting/stopping the typing. 3. Use tools like PyInstaller to compile the script into an executable. 4. Ensure the application is user-friendly and visually appealing.
파이썬 소프트웨어 개발자 역할을 맡아주세요. 당신은 사용자 인터페이스를 갖춘 데스크톱 애플리케이션 개발에 능숙합니다. 당신의 과제는 다음 기능을 수행하는 파이썬 프로그램을 개발하는 것입니다: - 지정된 텍스트를 자동으로 입력하고 각 메시지 후 "Enter"를 눌러 전송 (텔레그램 등 앱에 적합). - 입력할 텍스트와 타이핑 동작 간의 대기 시간(딜레이)을 사용자가 커스텀 설정 가능. - 윈도우용 실행 파일(.exe)로 컴파일 가능. - Tkinter 또는 PyQt 등의 라이브러리를 사용한 시각적으로 깔끔한 UI 제공. 단계: 1. PyAutoGUI 같은 파이썬 라이브러리를 사용하여 자동 타이핑 및 엔터키 전송 구현. 2. 텍스트 설정, 딜레이 설정, 타이핑 시작/정지 옵션이 포함된 UI 구현. 3. PyInstaller 등의 도구를 사용하여 스크립트를 .exe 파일로 빌드하는 방법 안내. 4. 사용하기 편하고 깔끔한 UI 디자인 확보.
출처 · prompts.chat · Python Auto Typer with Customizable Delay — 원문은 출처에 게시된 그대로이며, 권리는 원작자에게 있습니다.
Gemini로 실행한 결과입니다. 입력 항목에는 국내 환경의 예시값을 적용했습니다(AI 생성 — 사실 확인 필요).
Act as a Python Software Developer. You are skilled in creating desktop applications with user interfaces. Your task is to develop a Python program that: - Automatically types a specified text and presses "Enter" after each message to send it, suitable for applications like Telegram. - Allows users to customize the text to be typed and set a customizable delay between typing actions. - Compiles into an executable (.exe) file for Windows. - Features a visually appealing UI using libraries such as Tkinter or PyQt. Steps: 1. Use Python libraries like PyAutoGUI for typing automation and sending keystrokes like "Enter". 2. Implement a UI with options for setting the text, delay, and starting/stopping the typing. 3. Use tools like PyInstaller to compile the script into an executable. 4. Ensure the application is user-friendly and visually appealing.
Tkinter와 PyAutoGUI를 사용하여 제작한 자동 입력 GUI 프로그램 및 빌드 가이드입니다.
import tkinter as tk
import pyautogui, time, threading
class AutoTyperApp:
def __init__(self, root):
self.root = root
self.root.title("Auto Typer")
self.root.geometry("300x230")
self.running = False
tk.Label(root, text="전송할 메시지:").pack(pady=5)
self.entry_text = tk.Entry(root, width=30)
self.entry_text.pack()
self.entry_text.insert(0, "Hello, World!")
tk.Label(root, text="전송 간격(초):").pack(pady=5)
self.entry_delay = tk.Entry(root, width=10)
self.entry_delay.pack()
self.entry_delay.insert(0, "2.0")
self.btn_start = tk.Button(root, text="시작 (3초 후 작동)", command=self.start)
self.btn_start.pack(pady=5)
self.btn_stop = tk.Button(root, text="중지", command=self.stop)
self.btn_stop.pack()
def start(self):
if not self.running:
self.running = True
threading.Thread(target=self.run_typing, daemon=True).start()
def stop(self):
self.running = False
def run_typing(self):
time.sleep(3) # 입력창으로 포커스 이동 대기
text = self.entry_text.get()
try:
delay = float(self.entry_delay.get())
except ValueError:
delay = 2.0
while self.running:
pyautogui.write(text)
pyautogui.press('enter')
time.sleep(delay)
if __name__ == "__main__":
root = tk.Tk()
app = AutoTyperApp(root)
root.mainloop()■ EXE 파일 변환 방법:
pip install pyautogui pyinstallerpyinstaller --noconsole --onefile main.pydist 폴더 안의 main.exe를 실행합니다.