💻 Desktop ẩn (desk_launch / desk_select / desk_close)
Nhóm palette: Desktop · type: desk_* · cổng: tuỳ node
Mục đích
Bản đang bán: Desktop ẩn đang tắtFlag
ENABLE_HIDDEN_DESKTOP = False trong app/feature_flags.py. Palette không hiện nhóm Desktop. Properties hiện “Desktop ẩn đang tắt tạm thời.” Không quảng cáo USP “chạy trên desktop ẩn” cho đến khi bật flag. Phần dưới mô tả hành vi khi bật lại (engine vẫn còn).Palette: App (select_app, launch_app, close_app, resize_window) và Desktop (desk_* — đang tắt trên UI). Khi bật lại: chạy app trên Windows desktop ảo (botdesk). Resize cửa sổ không hỗ trợ hidden desktop.
Từng setting
| Ô trên Properties | Key | Mặc định | Ý nghĩa / cách dùng |
|---|---|---|---|
| Desktop name | desktop_name | botdesk1 | Tên Windows Desktop. Nhiều job: botdesk1… |
| desk_launch | exe / args / cwd | — | Exe bắt buộc; args; cwd = thư mục làm việc. |
| desk_launch & desk_select | match_mode / title / cls | — | title_contains / title_exact; Title chứa; Class chứa (Win32). |
| desk_launch | wait_ms / timeout_ms / poll_ms | 2000 / 8000 / 300 | Đợi / timeout / chu kỳ poll cửa sổ trên desk (ms). |
Ví dụ thực tế
- A. Khi flag bật:
desk_launch→desk_select→ click/OCR trên desk đó →desk_close. - B. Bản hiện tại: Properties báo tắt tạm thời — dùng Chọn App / đa luồng trên desktop chính, không quảng cáo desktop ẩn như tính năng đang bán.
Lưu ý
Khi bật lại (engine vẫn còn)
desk_launch: tạo Desktop tên desktop_name (mặc định botdesk1), desk.launch(exe, args, cwd), poll cửa sổ theo title/class. Thiếu exe hoặc hết timeout không thấy cửa sổ → raise (dừng job). desk_select: gắn hwnd đã có (hwnd cụ thể hoặc title/class); không thấy → raise. desk_close: desktop.close(name) — đóng desktop ẩn (mọi app trên đó).Xem thêm: desk_launch · desk_select · desk_close