The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: ragdog on January 05, 2007, 02:52:41 PM

Title: search a example mouse lock
Post by: ragdog on January 05, 2007, 02:52:41 PM
hi @all


I look for example lock mouse and unlock

thanks in forward
ragdog
Title: Re: search a example mouse lock
Post by: TNick on January 05, 2007, 03:29:40 PM
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
Title: Re: search a example mouse lock
Post by: ragdog on January 05, 2007, 03:33:30 PM
i mean
under win9x is the command "rundll32.exe mouse,disable"
this does not function any longerunder winxp
Title: Re: search a example mouse lock
Post by: TNick on January 05, 2007, 03:45:28 PM
Oh... well, I can't help you with that. Sorry!

Nick
Title: Re: search a example mouse lock
Post by: PBrennick on January 05, 2007, 06:09:28 PM
To capture the mouse use SetCapture.

Paul
Title: Re: search a example mouse lock
Post by: P1 on January 05, 2007, 06:34:29 PM
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)
Title: Re: search a example mouse lock
Post by: ramguru on January 05, 2007, 06:38:35 PM
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