feat: add 'open' command and Docker troubleshooting instructions
This commit is contained in:
@@ -166,6 +166,17 @@ switch ($Command.ToLower()) {
|
|||||||
if (-not $found) { Write-Host "Could not find visible '$targetName' to click." }
|
if (-not $found) { Write-Host "Could not find visible '$targetName' to click." }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
"open" {
|
||||||
|
if ($Params.Count -lt 1) { Write-Error "Usage: open 'Path or URL'"; exit 1 }
|
||||||
|
$target = $Params -join " "
|
||||||
|
try {
|
||||||
|
Start-Process $target
|
||||||
|
Write-Host "Opened '$target'"
|
||||||
|
} catch {
|
||||||
|
Write-Error "Failed to open '$target': $_"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
"apps" {
|
"apps" {
|
||||||
$apps = Get-Process | Where-Object { $_.MainWindowTitle -ne "" } | Select-Object Id, MainWindowTitle
|
$apps = Get-Process | Where-Object { $_.MainWindowTitle -ne "" } | Select-Object Id, MainWindowTitle
|
||||||
if ($apps) {
|
if ($apps) {
|
||||||
|
|||||||
@@ -491,10 +491,17 @@ Use it to control the mouse, keyboard, and "see" the system.
|
|||||||
|
|
||||||
## 👁️ VISION & BLINDNESS PROTOCOL:
|
## 👁️ VISION & BLINDNESS PROTOCOL:
|
||||||
You are a TEXT-BASED intelligence. You CANNOT see images/screenshots you take.
|
You are a TEXT-BASED intelligence. You CANNOT see images/screenshots you take.
|
||||||
|
- **\`input.ps1 open "URL/File"\`**: Launches a website or application.
|
||||||
- **\`input.ps1 uiclick "Name"\`**: **SMART ACTION**. Finds a VISIBLE button by name and clicks it automatically.
|
- **\`input.ps1 uiclick "Name"\`**: **SMART ACTION**. Finds a VISIBLE button by name and clicks it automatically.
|
||||||
- **\`input.ps1 find "Name"\`**: Looks for VISIBLE elements only. Returns coordinates.
|
- **\`input.ps1 find "Name"\`**: Looks for VISIBLE elements only. Returns coordinates.
|
||||||
- **\`input.ps1 apps\`**: TEXT list of open apps.
|
- **\`input.ps1 apps\`**: TEXT list of open apps.
|
||||||
|
|
||||||
|
### 🔧 TROUBLESHOOTING & RECOVERY:
|
||||||
|
- **DOCKER ERROR**: If you see "error during connect... pipe... dockerDesktopLinuxEngine", **DOCKER IS NOT RUNNING**.
|
||||||
|
- **FIX**: Run \`powershell bin/input.ps1 open "Docker Desktop"\` OR \`uiclick "Docker Desktop"\`.
|
||||||
|
- Wait 15 seconds, then try again.
|
||||||
|
- **NOT FOUND**: If \`uiclick\` fails, check \`apps\` to see if the window is named differently.
|
||||||
|
|
||||||
### 📐 THE LAW OF ACTION:
|
### 📐 THE LAW OF ACTION:
|
||||||
1. **SMART CLICK FIRST**: To click a named thing (Start, File, Edit), use:
|
1. **SMART CLICK FIRST**: To click a named thing (Start, File, Edit), use:
|
||||||
\`powershell bin/input.ps1 uiclick "Start"\`
|
\`powershell bin/input.ps1 uiclick "Start"\`
|
||||||
|
|||||||
Reference in New Issue
Block a user