Skip to main content

Bot do automatyzacji zadań poprzez Remote Desktop

Project description

desktop-bot

Desktop Automation Bot

A powerful desktop automation tool that can connect via Remote Desktop Protocol (RDP) and perform actions based on text commands across different operating systems.

Features

  • Connect to remote computers via RDP
  • Automate mouse actions (clicking, scrolling)
  • Simulate keyboard inputs
  • Screen element detection through image recognition
  • Optical Character Recognition (OCR)
  • Email retrieval and code extraction
  • Cross-platform shell command execution

Prerequisites

System Dependencies

  • Python 3.8+
  • Tesseract OCR
  • Additional system libraries depending on your OS

Installation Steps

  1. Clone the repository
git clone https://github.com/automatyzer/desktop-bot.git
cd desktop-bot
  1. Create and activate a virtual environment
# On Windows
python -m venv venv
venv\Scripts\activate

# On macOS/Linux
python3 -m venv venv
source venv/bin/activate
  1. Install system dependencies

Windows

# Install Tesseract OCR from official website
# Download and add to PATH: https://github.com/UB-Mannheim/tesseract/wiki
pip install -r requirements.txt

Ubuntu/Debian

# Install system dependencies
sudo apt-get update
sudo apt-get install -y \
    python3-pip \
    python3-venv \
    tesseract-ocr \
    libgl1-mesa-glx \
    xvfb \
    xserver-xorg-video-dummy

# Install Python dependencies
pip install -r requirements.txt

macOS

# Install Tesseract via Homebrew
brew install tesseract

# Install dependencies
pip install -r requirements.txt
  1. Verify Installation
# Check installed modules
pip list

# Run the application
python app.py

Troubleshooting Common Issues

Missing Module Errors

If you encounter ModuleNotFoundError, ensure:

  • Virtual environment is activated
  • All requirements are installed with pip install -r requirements.txt
  • You're using the correct Python interpreter from the virtual environment

Tesseract OCR Configuration

  • Ensure Tesseract is installed and accessible
  • Update tesseract_path in config.ini if needed

Usage Examples

# Create bot instance
bot = AutomationBot()

# Connect via RDP
bot.connect_rdp(host="example.com", username="user", password="pass")

# Execute tasks
bot.execute_task("open application firefox")
bot.execute_task("login to linkedin portal")

Command Line Usage

# Execute single task
python automatyzer_desktop.py --task "open application firefox"

# Run script with multiple tasks
python automatyzer_desktop.py --script tasks.txt

Configuration

Customize config.ini for:

  • RDP Connection settings
  • Email retrieval
  • Delay between actions
  • Tesseract OCR path

Contributing

  1. Fork the repository
  2. Create your feature branch
  3. Commit changes
  4. Push to the branch
  5. Create a Pull Request

License

Disclaimer

This tool is for educational and authorized testing purposes only. Always obtain proper authorization before accessing remote systems.

Quick Start

Local Development

  1. Create virtual environment
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python app.py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

automatyzer_desktop-0.1.5.tar.gz (57.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

automatyzer_desktop-0.1.5-py3-none-any.whl (71.9 kB view details)

Uploaded Python 3

File details

Details for the file automatyzer_desktop-0.1.5.tar.gz.

File metadata

  • Download URL: automatyzer_desktop-0.1.5.tar.gz
  • Upload date:
  • Size: 57.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.0

File hashes

Hashes for automatyzer_desktop-0.1.5.tar.gz
Algorithm Hash digest
SHA256 c4fe13a1557f14b893e49024c70c33b49803916c9a951c1065f2346de206cace
MD5 97cee97fee426721c66b4d5f2eb7de1b
BLAKE2b-256 586214d8e0c6328d312ba086d4475e5e55397f275bce8a7412efdee719ea62af

See more details on using hashes here.

File details

Details for the file automatyzer_desktop-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for automatyzer_desktop-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 9995e45ea14e2015da5bc37da253398d2be1a7a40b65d0f1250a0b4d55cd490b
MD5 be7e67193a2b6c5c6ec5dfae7d22a4f1
BLAKE2b-256 f994a3199c8f2f58368d01cec6e5f64b0913de114b4f0e7e51b07b3fbb89ec10

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page