Skip to content

Installation Guide

Aashish Kumar Shukla edited this page Jul 22, 2025 · 1 revision

๐Ÿ“ฆ Installation Guide

Complete step-by-step installation guide for AutoTyper on macOS.

๐Ÿ” System Requirements

โœ… Minimum Requirements

Operating System: macOS 10.14+ (Mojave or later)
Python Version:   3.6 or higher
RAM:             512 MB available
Storage:         50 MB free space
Permissions:     Admin access for accessibility setup

๐Ÿš€ Recommended Specifications

Operating System: macOS 11.0+ (Big Sur or later)
Python Version:   3.8 or higher
RAM:             1 GB available
Storage:         100 MB free space
Terminal:        Terminal.app or iTerm2

๐Ÿ“‹ Pre-Installation Checklist

1๏ธโƒฃ Check Python Installation

# Check if Python is installed
python3 --version

# Expected output (version may vary):
# Python 3.8.10

# If Python is not installed, install via Homebrew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install python

2๏ธโƒฃ Verify Git Installation

# Check Git installation
git --version

# Expected output:
# git version 2.32.0

# Install Git if needed:
xcode-select --install

3๏ธโƒฃ Create Project Directory

# Navigate to your preferred directory
cd ~/Documents

# Or create a dedicated projects folder
mkdir ~/Projects && cd ~/Projects

๐Ÿš€ Installation Methods

Method 1: Quick Install (Recommended)

# One-command installation
curl -fsSL https://raw.githubusercontent.com/aashish-shukla/Autotyper-for-MacOS/main/install.sh | bash

Method 2: Manual Installation

Step 1: Clone Repository

# Clone the repository
git clone https://github.com/aashish-shukla/Autotyper-for-MacOS.git

# Navigate to project directory
cd Autotyper-for-MacOS

# Verify files
ls -la

Step 2: Install Dependencies

# Install required Python packages
pip3 install pyautogui pyperclip keyboard

# Or install from requirements file
pip3 install -r requirements.txt

Step 3: Verify Installation

# Test the installation
python3 autotyper.py --version

# Expected output:
# AutoTyper v3.4 - Individual Mode Hotkeys Edition

Method 3: Virtual Environment (Recommended for Developers)

# Create virtual environment
python3 -m venv autotyper-env

# Activate virtual environment
source autotyper-env/bin/activate

# Install dependencies
pip install -r requirements.txt

# Run AutoTyper
python autotyper.py

๐Ÿ”ง Dependency Details

๐Ÿ“š Required Libraries

Library Version Purpose Installation
pyautogui 0.9.54+ GUI automation and keyboard simulation pip install pyautogui
pyperclip 1.8.2+ Cross-platform clipboard operations pip install pyperclip
keyboard 0.13.5+ Global hotkey detection and events pip install keyboard

๐Ÿ“‹ Installation Commands

# Individual installations
pip3 install pyautogui==0.9.54
pip3 install pyperclip==1.8.2  
pip3 install keyboard==0.13.5

# Bulk installation
pip3 install pyautogui pyperclip keyboard

# With version specifications
pip3 install "pyautogui>=0.9.54" "pyperclip>=1.8.2" "keyboard>=0.13.5"

๐Ÿ” Post-Installation Verification

โœ… Test Basic Functionality

# Run AutoTyper
python3 autotyper.py

# Expected initial output:
# ======================================================================
#            ๐Ÿค– AutoTyper v3.4 - Individual Mode Hotkeys Edition
# ======================================================================
# [INFO] ๐Ÿš€ Hotkey-controlled clipboard auto-typer
# [INFO] ๐Ÿ“‹ Types ONLY clipboard content with human-like behavior
# [INFO] โšก Features individual hotkeys for each speed mode
# [INFO] ๐ŸŽ Optimized for macOS compatibility

๐Ÿงช Test Clipboard Integration

# Copy test text to clipboard
echo "Hello, AutoTyper!" | pbcopy

# Run AutoTyper and check status
python3 autotyper.py

# Should show:
# ๐Ÿ“‹ Clipboard: 17 chars, 2 words, 1 lines
# ๐Ÿ‘€ Preview: Hello, AutoTyper!

๐ŸŽน Test Hotkey Detection

# AutoTyper will attempt to register hotkeys
# Look for these messages:

# โœ… Success:
# [INFO] โœ… F9 - Resume/General Start
# [INFO] โœ… F8 - Pause  
# [INFO] โœ… F10 - Stop

# โŒ Permission needed:
# [ERROR] โŒ Accessibility permissions required!

๐Ÿ› ๏ธ Troubleshooting Installation Issues

โŒ Common Issues & Solutions

Issue 1: Python Command Not Found

# Problem:
# zsh: command not found: python

# Solutions:
# Try python3 instead
python3 autotyper.py

# Or create alias
echo 'alias python=python3' >> ~/.zshrc
source ~/.zshrc

Issue 2: Permission Denied for pip

# Problem:
# ERROR: Could not install packages due to an EnvironmentError

# Solutions:
# Use user installation
pip3 install --user pyautogui pyperclip keyboard

# Or use virtual environment (recommended)
python3 -m venv venv
source venv/bin/activate
pip install pyautogui pyperclip keyboard

Issue 3: SSL Certificate Error

# Problem:
# SSL: CERTIFICATE_VERIFY_FAILED

# Solutions:
# Update certificates
/Applications/Python\ 3.x/Install\ Certificates.command

# Or bypass SSL (not recommended)
pip3 install --trusted-host pypi.org --trusted-host pypi.python.org pyautogui

Issue 4: Xcode Command Line Tools Missing

# Problem:
# xcrun: error: invalid active developer path

# Solution:
xcode-select --install

# Follow the installation prompts

๐Ÿ”ง Advanced Troubleshooting

Check Python Installation Path

# Find Python installation
which python3
# Output: /usr/bin/python3

# Check Python path
python3 -c "import sys; print(sys.executable)"
# Output: /usr/bin/python3

Verify Package Installation

# Check installed packages
pip3 list | grep -E "(pyautogui|pyperclip|keyboard)"

# Expected output:
# keyboard      0.13.5
# pyautogui     0.9.54
# pyperclip     1.8.2

Test Individual Libraries

# Test pyautogui
python3 -c "import pyautogui; print('PyAutoGUI OK')"

# Test pyperclip  
python3 -c "import pyperclip; print('Pyperclip OK')"

# Test keyboard
python3 -c "import keyboard; print('Keyboard OK')"

๐Ÿ“ Project Structure

After successful installation, your project directory should look like:

Autotyper-for-MacOS/
โ”œโ”€โ”€ autotyper.py              # Main application file
โ”œโ”€โ”€ README.md                 # Project documentation
โ”œโ”€โ”€ requirements.txt          # Python dependencies
โ”œโ”€โ”€ LICENSE                   # MIT license file
โ”œโ”€โ”€ install.sh               # Quick installation script
โ”œโ”€โ”€ examples/                # Usage examples
โ”‚   โ”œโ”€โ”€ basic_usage.py       # Basic usage examples
โ”‚   โ”œโ”€โ”€ advanced_config.py   # Advanced configuration
โ”‚   โ””โ”€โ”€ custom_timing.py     # Custom timing patterns
โ”œโ”€โ”€ docs/                    # Additional documentation
โ”‚   โ”œโ”€โ”€ API.md              # API reference
โ”‚   โ”œโ”€โ”€ CONTRIBUTING.md     # Contribution guidelines
โ”‚   โ””โ”€โ”€ CHANGELOG.md        # Version history
โ””โ”€โ”€ tests/                   # Test files
    โ”œโ”€โ”€ test_basic.py       # Basic functionality tests
    โ”œโ”€โ”€ test_hotkeys.py     # Hotkey system tests
    โ””โ”€โ”€ test_timing.py      # Timing accuracy tests

๐Ÿ”„ Updating AutoTyper

๐Ÿ“ฅ Update to Latest Version

# Navigate to project directory
cd path/to/Autotyper-for-MacOS

# Pull latest changes
git pull origin main

# Update dependencies if needed
pip3 install -r requirements.txt --upgrade

# Verify update
python3 autotyper.py --version

๐Ÿ”– Version Management

# Check current version
git log --oneline -1

# List all versions
git tag -l

# Switch to specific version
git checkout v3.4

# Return to latest
git checkout main

๐ŸŽฏ Next Steps

After successful installation:

  1. ๐Ÿ” Setup Permissions: Permissions Setup Guide
  2. ๐Ÿš€ First Time Setup: First Time Setup Guide
  3. ๐Ÿ“– Learn Basic Usage: Basic Usage Guide
  4. ๐ŸŽฎ Configure Hotkeys: Hotkey Configuration

Need help? Check our Troubleshooting Guide or create an issue on GitHub.

Clone this wiki locally