mouse moving on desktop...

BlitzMax Forums/BlitzMax Programming/mouse moving on desktop...

insomnia(Posted 2007) [#1]
Hello!

May anybody tell me if it is possible to move the mouse on the desktop with a code?! If yes, how to do so?


Gabriel(Posted 2007) [#2]
You can use SendInput or mouse_event. I can't remember why, but I'm pretty sure I read that mouse_event ( much like keybd_event ) is not recommended any more. But hey, try both and see how they go.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/userinput/keyboardinput/keyboardinputreference/keyboardinputfunctions/sendinput.asp

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/userinput/mouseinput/mouseinputreference/mouseinputfunctions/mouse_event.asp


plash(Posted 2007) [#3]
Try this, it shouldn't be hard to convert it to BMax code, I would do it, but I'm a little busy right now.

Mouse userlib


insomnia(Posted 2007) [#4]
I tried to update the SetCurorPos and mouse_event to the user32.dll in /pub.mod/win32.mod and recompiled the modules. But I still get the msg, that he don't know this two functions. öÔ

May somebody show me how it will work please?


plash(Posted 2007) [#5]
Here: