Move and control Windows mouse cursor with Qt
-
Hello All.
There is a library, class or method to control and manage the mouse cursor, the mouse pointer?
I sends data through bluetooth and with that I want to control the mouse.
Also, you can also help me with: What windows services control the mouse? Im really lost with it.
Thanks in advance. -
Hello All.
There is a library, class or method to control and manage the mouse cursor, the mouse pointer?
I sends data through bluetooth and with that I want to control the mouse.
Also, you can also help me with: What windows services control the mouse? Im really lost with it.
Thanks in advance. -
Hello All.
There is a library, class or method to control and manage the mouse cursor, the mouse pointer?
I sends data through bluetooth and with that I want to control the mouse.
Also, you can also help me with: What windows services control the mouse? Im really lost with it.
Thanks in advance. -
Hello J. Hilk.
It's working with this code
QScreen *screen=QGuiApplication::primaryScreen(); QCursor *cursor= new QCursor(); cursor->setPos(screen , x,y); // x and y are interger variable.
And it change the cursor position in the screen. Now I've to enable clicking to complete control the mouse.
-
Hello J. Hilk.
It's working with this code
QScreen *screen=QGuiApplication::primaryScreen(); QCursor *cursor= new QCursor(); cursor->setPos(screen , x,y); // x and y are interger variable.
And it change the cursor position in the screen. Now I've to enable clicking to complete control the mouse.
@Julian when your issue is solved, please don't forget to mark your post as such! Thanks
-
Hello J. Hilk.
It's working with this code
QScreen *screen=QGuiApplication::primaryScreen(); QCursor *cursor= new QCursor(); cursor->setPos(screen , x,y); // x and y are interger variable.
And it change the cursor position in the screen. Now I've to enable clicking to complete control the mouse.
Now I've to enable clicking to complete control the mouse.
Assuming you mean "clicking outside of your application"(?), I'm not sure the OS/window system/Qt will allow you to do that. (I see @J-Hilk has said that above.) If it can be done, you may need native OS/windows calls, "CaptureMouse", or similar...