in reply to [OT] Mouse Lock/Unlock using Perl
Try using a USB mouse if you were using a PS2 one, or vice versa. If the problem disappears, it might be a problem with your mainboard.