You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+49-2Lines changed: 49 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -532,11 +532,58 @@ To be implemented.
532
532
533
533
### windows: launchApp
534
534
535
-
To be implemented.
535
+
Launches an application and waits for it to start. Supports both classic Win32 apps (by path) and UWP apps (by App User Model ID).
536
+
537
+
#### Arguments
538
+
539
+
Name | Type | Required | Description | Example
540
+
--- | --- | --- | --- | ---
541
+
app | string | yes | Path to the executable or UWP App User Model ID (AUMID). Classic format: `C:\Path\To\app.exe`. UWP format: `Microsoft.WindowsCalculator_8wekyb3d8bbwe!App` | notepad.exe
542
+
appArguments | string | no | Command-line arguments to pass to the application. | --some-flag
Terminates a running application by process ID, process name, or window handle. All three methods force-kill the process (same outcome). For graceful window close, use `windows: close` with an element. Exactly one identifier must be provided.
565
+
566
+
#### Arguments
567
+
568
+
Name | Type | Required | Description | Example
569
+
--- | --- | --- | --- | ---
570
+
processId | number | no | Process ID (PID) of the application to terminate. Uses `Stop-Process -Id`. | 12345
571
+
processName | string | no | Process name (e.g. executable name without extension). Terminates all processes with that name. Uses `Stop-Process -Name`. | notepad
572
+
windowHandle | string or number | no | Native window handle of the application window. Resolves the window to its process ID, then terminates it via `Stop-Process -Id`. Accepts hex string (e.g. `"0x12345678"`) or number. | 0x12345678
0 commit comments