Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

PyStreamDeck Pro

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.

PyStreamDeck Pro

✨ Features

Desktop Application

  • 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

Mobile Remote

  • 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

Macro Features

  • 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

📦 Installation

Option 1: Standalone EXE (Recommended for Users)

  1. Download PyStreamDeck.exe from the Releases page
  2. Double-click to run - no installation needed!
  3. Your macros are saved in C:\Users\<YourName>\.macro\

Option 2: Run from Source (For Developers)

Prerequisites

  • Python 3.10 or higher
  • pip package manager

Setup

  1. Clone the repository

    git clone https://github.com/adymany/PyStreamDeck.git
    cd PyStreamDeck
  2. Install dependencies

    pip install PyQt6 Flask pynput qrcode[pil] Pillow
  3. Run the application

    python PyStreamDeck.pyw

🚀 Quick Start

Recording Your First Macro

  1. Right-click any macro slot (M1-M9)
  2. Select "🔴 Record Macro"
  3. Press keys you want to record
  4. Press ESC to stop recording
  5. Left-click the slot to play your macro

Editing a Macro

  1. Right-click a macro slot
  2. Select "👁️ View Macro"
  3. 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
  4. Click "💾 Save" when done

Mobile Control Setup

  1. Click "📱 Connect Mobile" in the desktop app
  2. Scan the QR code with your phone
  3. Save the page to your home screen for quick access
  4. Use fullscreen mode for an app-like experience

🎯 Usage Tips

Smart String Input

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...

Special Keys

Use the button grid for quick access to:

  • Enter, Tab, Space, Backspace
  • Shift, Ctrl, Alt, Esc
  • Arrow Keys (↑ ↓ ← →)
  • Insert, Delete, Home, End

Profile Organization

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

🛠️ Building from Source

Prerequisites

pip install pyinstaller

Build Standalone EXE

# 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.pyw

The executable will be created in the dist/ folder.

📁 Project Structure

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

🔧 Technical Details

Tech Stack

  • GUI Framework: PyQt6
  • Web Server: Flask
  • Input Simulation: pynput
  • QR Generation: qrcode + Pillow
  • Build Tool: PyInstaller

Architecture

  • 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

Network Configuration

  • 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

🐛 Troubleshooting

App Won't Start

  • Ensure all dependencies are installed
  • Check Python version (3.10+)
  • Try running from command line to see error messages

Mobile Can't Connect

  • Ensure phone and PC are on the same network
  • Check Windows Firewall settings
  • Try accessing http://<pc-ip>:5000 in browser first

Macros Not Working

  • Only one macro runs at a time (safety feature)
  • Check if target application has focus
  • Verify keys are correctly recorded

📄 License

This project is open source. Add your preferred license here.

🤝 Contributing

Contributions are welcome! Please:

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Submit a pull request

✨ Credits

Created with PyQt6, Flask, and pynput.


Enjoy your new macro powerhouse! 🚀

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages