Jump to content

Recommended Posts

Posted

Hi guys,

 

I've written a script that will move my mouse to a location on the screen whenever my remote access software becomes active, the problem I have is that as soon as the remote access software becomes active it appears to capture the mouse and keyboard so nothing happens when I use MouseMove().

 

Is there any way around this?

 

Thanks!

Posted (edited)

Sure, here you go:

If WinActive("NB-ACT-12 - ConnectWiseControl") Then
  $hdlCurrentActive = WinGetHandle("[ACTIVE]")
  $winPos = WinGetPos($hdlCurrentActive)
    $winX = $winPos[0]
    $winY = $winPos[1]
    $winWidth = $winPos[2]
    $winHeight = $winPos[3]
    $winXandWidth = $winX + $winWidth
    $winYandHeight = $winY + $winHeight
  $currentMouse = MouseGetPos()
  If $currentMouse[0] > $winX And $currentMouse[0] < $winXandWidth And $currentMouse[1] > $winY And $currentMouse[1] < $winYandHeight Then
    MouseMove($winXandWidth +15, $winYandHeight +15)
  EndIf
EndIf

But I suspect this is more about handling the mouse when the remote access program is active, so am hoping their is another way of moving the mouse.

Edited by WoodGrain
additional info added
Posted

Which remote desktop software are you using? I believe it is holding the mouse by constantly moving it to the pixel that the remote client defines. 

My stuff

  Reveal hidden contents

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...