A modern, professional macro pad application with mobile remote control capabilities. Built with PyQt6 for a sleek desktop experience and Flask for seamless mobile integration.
- Modern PyQt6 Interface - Clean, resizable UI with dark theme
- Visual Macro Editor - Timeline-style editor with drag-and-drop support
- Smart Key Input - Automatic string expansion (type "youtube" → auto-creates key sequence)
- Special Key Buttons - Quick access to Enter, Ctrl, Alt, Arrow keys, etc.
- System Tray Integration - Minimize to tray and run in background
- Profile Management - 5 built-in profiles: General, Video Editing, Photo Editing, Gaming, Productivity
- Safety Lock - Prevents multiple macros from running simultaneously
- Web Interface - Control macros from any device on your network
- QR Code Connection - Instant setup via QR scan
- Fullscreen Mode - Immersive mobile experience with wake lock
- Dynamic Updates - Switch profiles without page reload
- Visual Timeline - See and edit key sequences with delays
- Editable Delays - Click delay bubbles to adjust timing (default 50ms)
- Click-to-Edit - Edit keys, actions, and delays inline
- Right-Click Delete - Remove unwanted actions quickly
- Multi-String Support - Auto-expand text like "hello" into individual keystrokes
- Download
PyStreamDeck.exefrom the Releases page - Double-click to run - no installation needed!
- Your macros are saved in
C:\Users\<YourName>\.macro\
- Python 3.10 or higher
- pip package manager
-
Clone the repository
git clone https://github.com/adymany/PyStreamDeck.git cd PyStreamDeck -
Install dependencies
pip install PyQt6 Flask pynput qrcode[pil] Pillow
-
Run the application
python PyStreamDeck.pyw
- Right-click any macro slot (M1-M9)
- Select "🔴 Record Macro"
- Press keys you want to record
- Press ESC to stop recording
- Left-click the slot to play your macro
- Right-click a macro slot
- Select "👁️ View Macro"
- In the timeline editor:
- Click a key to edit it
- Click a delay to adjust timing
- Right-click a key to delete it
- Click "+" to add new actions
- Click "💾 Save" when done
- Click "📱 Connect Mobile" in the desktop app
- Scan the QR code with your phone
- Save the page to your home screen for quick access
- Use fullscreen mode for an app-like experience
When adding a new action, typing a word will automatically create the key sequence:
- Type:
youtube - Result: Automatically creates
Press y,Release y,Press o,Release o...
Use the button grid for quick access to:
- Enter, Tab, Space, Backspace
- Shift, Ctrl, Alt, Esc
- Arrow Keys (↑ ↓ ← →)
- Insert, Delete, Home, End
Organize macros for different workflows:
- General - Common tasks (Copy, Cut, Paste, Undo, Redo, etc.)
- Video Editing - Premiere/DaVinci shortcuts
- Photo Editing - Photoshop/Lightroom macros
- Gaming - Game-specific combos
- Productivity - Office automation
pip install pyinstaller# Convert PNG logo to ICO format
python -c "from PIL import Image; img = Image.open('logo.png'); img.save('logo.ico', format='ICO', sizes=[(256, 256)])"
# Build with PyInstaller
python -m PyInstaller --noconfirm --onefile --windowed --icon "logo.ico" --add-data "logo.png;." PyStreamDeck.pywThe executable will be created in the dist/ folder.
PyStreamDeck/
├── PyStreamDeck.pyw # Main application
├── logo.png # Application icon (PNG)
├── logo.ico # Application icon (ICO, generated)
├── .gitignore # Git ignore rules
├── README.md # This file
└── .macro/ # User data (not in repo)
└── macros_*.json # Saved macros per profile
- GUI Framework: PyQt6
- Web Server: Flask
- Input Simulation: pynput
- QR Generation: qrcode + Pillow
- Build Tool: PyInstaller
- Single Window Navigation: Uses QStackedWidget for seamless view transitions
- Web Interface: RESTful API with dynamic button updates
- Macro Engine: Event-based system with configurable delays
- System Tray: Background operation with notification support
- Web Server: Runs on
0.0.0.0:5000 - Mobile Access: Connect via LAN IP
http://<your-ip>:5000 - Firewall: May need to allow Python/app through Windows Firewall
- Ensure all dependencies are installed
- Check Python version (3.10+)
- Try running from command line to see error messages
- Ensure phone and PC are on the same network
- Check Windows Firewall settings
- Try accessing
http://<pc-ip>:5000in browser first
- Only one macro runs at a time (safety feature)
- Check if target application has focus
- Verify keys are correctly recorded
This project is open source. Add your preferred license here.
Contributions are welcome! Please:
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
Created with PyQt6, Flask, and pynput.
Enjoy your new macro powerhouse! 🚀
