News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

search a example mouse lock

Started by ragdog, January 05, 2007, 02:52:41 PM

Previous topic - Next topic

ragdog

hi @all


I look for example lock mouse and unlock

thanks in forward
ragdog

TNick

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

ragdog

i mean
under win9x is the command "rundll32.exe mouse,disable"
this does not function any longerunder winxp

TNick

Oh... well, I can't help you with that. Sorry!

Nick

PBrennick

To capture the mouse use SetCapture.

Paul
The GeneSys Project is available from:
The Repository or My crappy website

P1

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)

ramguru

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