hi @all
I look for example lock mouse and unlock
thanks in forward
ragdog
I don't have an example, but how about this:
- when a certain event arrives to lock the mouse: capture the mouse and set flag1
- WM_MOUSEMOVE - if flag1 is set, mouse_event - x=ScreenW\2, y=ScreenH\2
- when a certain event arrives to unlock the mouse: release the capture and clear flag1
What do you think?
Regards,
Nick
i mean
under win9x is the command "rundll32.exe mouse,disable"
this does not function any longerunder winxp
Oh... well, I can't help you with that. Sorry!
Nick
To capture the mouse use SetCapture.
Paul
Quote from: ragdog on January 05, 2007, 02:52:41 PMI look for example lock mouse and unlock
What is this good for?
When you google it, it seem it was good for messing people up from viruses.
Giving your process a Realtime priority does almost the same thing. If your looking for no interuptions.
Regards, P1 :8)
I've used ClipCursor a couple of times to bound mouse cursor move in specificied rectangle, this can be considered as mouse lock also :toothy