Moving the mouse

ahoj ahoj!
I’m trying to move the mouse pointer
The idea is, when clicking (central BTN) on the white quad, I’d like to move the mouse in the center of the quad
I guess first step is to find position of the render window… but if I use the Window (Windows) to retrieve the position, it also move/resize the windows I’m interested inhttps://vvvv.org/sites/default/files/imagecache/large/images/MoveCursor.png

moveMouse.v4p (7.4 kB)

what is the use case of this scenario? do you want to drag the quad around after the click? its usually not a good UX pattern move the mouse cursor of the user…

yes exactly, I wanna move the quad. So the think is, first click is just to select, then I can drag around or move with cursor key (for little movement)

I want to start the dragging from where the quad it is, not from the point I click the mouse

this one works for me.

edit: didn’t refresh. it’s just setting the mouse.

moveMouse.v4p (15.2 kB)

i’d implement it in a way that its not relevant where you click on the quad, you just offset the position when dragging, then you don’t need to center the position:

MoveQuadNotMouse.v4p (8.8 kB)

thanks, probably I’ll go for the offset…

@bjoern: looks like your solution doesn’t work if you have more that one monitor, I think I’ll open a new thread for it