Install
openclaw skills install printer-controlControl local and network printers on Windows to list printers, print files or text, check status, and set default printer with name matching support.
openclaw skills install printer-controlThis skill enables agent-controlled printing on Windows systems.
Requires explicit user authorization before any print operation. Printing consumes physical resources and can be disruptive.
Always confirm:
python scripts/list_printers.py
Or with PowerShell:
powershell -Command "Get-Printer | Select-Object Name, Type, Shared, PortName"
python scripts/print_file.py --printer "Printer Name" --file "C:\path\to\file.txt"
python scripts/print_text.py --printer "Printer Name" --text "Hello, World!"
python scripts/set_default.py --printer "Printer Name"
| Script | Purpose |
|---|---|
list_printers.py | List all available printers |
print_file.py | Print a file to a specified printer |
print_text.py | Print raw text string |
set_default.py | Set default printer |
printer_status.py | Check printer status (online, paper, toner) |
pip install pywin32
The scripts automatically fall back to PowerShell if pywin32 is not available.
Example 1: List printers and pick one
python scripts/list_printers.py
# Output shows available printers, pick one by name
Example 2: Print a document
python scripts/print_file.py --printer "HP LaserJet Pro" --file "report.pdf" --copies 2
Example 3: Print a quick note
python scripts/print_text.py --text "Meeting at 3pm" --printer "Office Printer"
list_printers.py to verify the exact printer namepip install pywin32powershell -Command "Restart-Service -Name Spooler"
See references/printer-api.md for detailed API documentation and Windows print subsystem details.