Mouse.MoveTo() on second monitor

Status
Not open for further replies.

rfresh737

Well-known member
My windows 10 setup is using two monitors. On my second monitor I have my VS 2017 IDE. When I use Mouse.MoveTo(), I start out at 0,0 and I see the mouse pointer on my second monitor in the upper left corner. I rotate my encoder knob and I can move the mouse pointer as expected.

I read the docs on Mouse.MoveTo() and it says the mouse movement is relative to the mouse pointer's current location. I moved the IDE to my primary monitor and ran my sketch but the mouse pointer didn't move. I suspect VS 2017 is taking over the mouse to ensure I always have full control of it in my IDE.

My question is this: do we have any control on which monitor the mouse.moveto method operates on? The resolution on my second monitor is different from my primary monitor. I'd like to be able to move the mouse pointer on my primary monitor while I run and test my sketch on my second monitor. Is that possible?

Thank you...
 
Status
Not open for further replies.
Back
Top