# ContextInputAssistant **Repository Path**: amazoncloud/context-input-assistant ## Basic Information - **Project Name**: ContextInputAssistant - **Description**: 模拟键盘输入程序,随用户按键逐步输入预载文本内容。 - **Primary Language**: Python - **License**: EPL-1.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-12-26 - **Last Updated**: 2025-12-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Context Input Assistant Keyboard input simulation program that inputs preloaded text content step by step with user keystrokes. ## Basic Information - Version: 1.0000.0000 - Repository: https://gitee.com/amazoncloud/context-input-assistant - Author: fabulousforesight@foxmail.com ## System Requirements - Windows 10 / Windows 11 - Python 3.12+ ## Features - Load any text file while preserving complete formatting (spaces, TAB, carriage returns) - Automatically input 2 characters from text when user presses any non-function key - F1: Start input mode - F2: Pause/Resume (sends Windows system notification) - F3: Exit program ## Project Structure ``` ContextInputAssistant/ ├── main.py # Main program entry ├── config.py # Configuration file ├── requirements.txt # Dependencies description ├── README.md # Project documentation └── core/ # Core modules ├── __init__.py ├── keyboard_simulator.py # Keyboard simulator └── notification.py # Windows notifications ``` ## Usage ```powershell python main.py ``` 1. File selection dialog appears after program starts 2. Select the text file to input 3. Press F1 to activate input mode 4. Press any key in target input field to trigger text input 5. Press F2 to pause/resume 6. Press F3 to exit ## Technical Implementation - Uses Windows SendInput API for keyboard input simulation - Uses SetWindowsHookEx low-level keyboard hook to monitor keystrokes - Uses Windows UWP Toast API for system notifications - Pure standard library implementation, no third-party dependencies