Guides
Launch apps
Spawn and drive Windows applications from your session.
Launch a Windows application on the rig and drive it with vision + input.
Pass arguments when needed:
See the Notepad example and Paint example
for complete scripts.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Spawn and drive Windows applications from your session.
result = gw.launch_app(sid, path=r"C:\Windows\System32\notepad.exe")
print(result) # {'ok': True, 'pid': 14180}
gw.launch_app(sid, path=r"C:\Windows\System32\mspaint.exe", args=[])
gw.launch_app(sid, path=r"C:\Windows\System32\notepad.exe")
obs = gw.observe(sid, mark=True)
edit = next((t for t in obs.targets if t.role == "edit"), None)
if edit:
gw.click_target(sid, edit.id, targets=obs.targets)
gw.type_text(sid, "Driven through the Glasswarp API")
gw.kill_app(sid, pid=result["pid"]) # or kill all session-launched apps
safety_restore on session end, but
kill long-running apps explicitly when your task is done.