본문 바로가기

11월 26일 18:45 기준 · 10분마다 새 소식을 확인합니다

광고나 제휴로 순서를 바꾸지 않습니다 · pick 기준 보기 ›
소식 받기
코딩 · 개발

파이썬 오토 타이퍼 개발

메신저 자동 전송이나 반복 입력 작업에 사용할 수 있는 딜레이 조절 GUI 텍스트 자동 입력 프로그램을 파이썬으로 개발합니다.

추천 툴
ChatGPTAI 분류
쓰인 기법
역할 부여 · 요구사항 명시 · 단계별 안내

프롬프트 원문

ChatGPT로 실행
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 디자인 확보.
  • 활용반복 업무 자동화 프로그램이나 메신저 테스트용 GUI 툴 코드를 단번에 작성할 때 유용합니다.
  • 활용PyQt나 Tkinter 기반 코드와 함께 exe 패키징 명령어까지 한 번에 안내받을 수 있습니다.

출처 · 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 파일 변환 방법:

  1. 필수 패키지 설치: pip install pyautogui pyinstaller
  2. Executable 빌드: pyinstaller --noconsole --onefile main.py
  3. 생성된 dist 폴더 안의 main.exe를 실행합니다.

mopick 개선안

원문을 더 잘 동작하게 고쳐 쓴 프롬프트

원문을 그대로 넣으면 AI 가 매번 다르게 답하거나 중요한 부분을 빠뜨릴 수 있습니다. 개선안은 원문의 뜻과 언어는 그대로 두고 역할 · 바꿔 넣을 입력 칸 · 결과 형식 · 지킬 조건을 보완해 다시 쓴 버전입니다. 원문과 같은 곳(ChatGPT · Claude 등)에 그대로 붙여 넣어 쓰면 됩니다.

AI 자체 평가 — 개선안을 쓴 AI 가 명확성 · 구체성 · 결과 형식 · 재사용성 기준(100점)으로 직접 매긴 점수 · 결과를 돌려 검증한 값은 아님

원문68
개선안90

원문의 문제 → 개선안에서 고친 점

  • 입력 칸레슨 05 배우기 ›

    원문 · 없음바꿔 넣을 자리가 표시돼 있지 않아 쓸 때마다 원문을 직접 고쳐야 했습니다.

    개선 · 1개[Tkinter/PyQt6]

고친 이유 (개선안을 만든 AI 의 설명)

  1. 1UI 멈춤 방지 멀티스레딩 및 안전장치 조건 추가
  2. 2재사용성을 위한 대괄호 프레임워크 변수 추가
  3. 3완전한 코드 구성 및 실행파일 빌드 안내 명시

원문

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.

개선안 · 색칠한 [칸]에 내 내용을 넣어 쓰세요

Act as a Senior Python Developer specializing in GUI desktop applications. Create a complete, production-ready Python script and build guide based on the following specifications:

**Specifications:**
- UI Framework: Use [Tkinter/PyQt6] to create a clean UI with inputs for target text, delay (in seconds), repeat count, and Start/Stop controls.
- Automation: Use `pyautogui` for typing automation. Enable `pyautogui.FAILSAFE = True` for emergency aborts.
- Threading: Execute the automation loop in a background thread to keep the GUI responsive.

**Expected Outputs:**
1. Complete, well-commented Python code including error handling and thread control.
2. Commands for installing required dependencies.
3. Exact PyInstaller command and steps to compile the script into a single Windows `.exe` file.

**Self-Review:** Verify that stopping the automation releases resources smoothly without freezing the UI.

같은 분야 프롬프트 코딩 · 개발

더 보기 ›