Feature: Add window/region capture targets to remote_open
Pass the target HWND through the COMMAND_SCREEN_SPY token and send COMMAND_SCREEN_ROI after session start, so MCP remote control can stream just the target window or region instead of the scaled virtual desktop. The session records the target kind, remote_mouse refuses a redundant window_hwnd basis, and the cached resolution is refreshed per action so resized windows keep mapping correctly. Cold starts now clear the stale resolution cache used by the region handshake.
This commit is contained in:
1 parent
5501889d33
commit
cdd9c56b3d
7 files changed
+445
-39
No files matched your search
@@ -195,7 +195,10 @@ public:
|
||||
// Start remote desktop session for web viewing.
|
||||
// forceVirtualDesktop=true 时要求客户端抓整个虚拟桌面(MCP 远程控制):
|
||||
// 多显示器下截图与鼠标注入必须共用同一坐标系,Web 观看仍保持原有轮转行为。
|
||||
bool StartRemoteDesktop(uint64_t device_id, bool forceVirtualDesktop = false);
|
||||
// windowHwnd != 0 时只推该窗口(MCP remote_open window_hwnd):客户端用 DWM 可见
|
||||
// 边框作为帧尺寸、窗口原点作为注入坐标原点,此时忽略 forceVirtualDesktop。
|
||||
bool StartRemoteDesktop(uint64_t device_id, bool forceVirtualDesktop = false,
|
||||
uint32_t windowHwnd = 0);
|
||||
|
||||
// Stop remote desktop session
|
||||
void StopRemoteDesktop(uint64_t device_id);
|
||||
|
||||
Reference in new issue
Block a user