sanPerl has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's minimum standard of quality and will not be displayed.

Replies are listed 'Best First'.
Re: [OT] Mouse Lock/Unlock using Perl
by ikegami (Patriarch) on Dec 11, 2006 at 06:36 UTC

    Start by finding out what the problem is first, since that has nothing to do with Perl. If the solution requires coding and you need help to code the solution in Perl, then (and only then) does it become something for PerlMonks.

    At that point, you'll might need to know that Windows system calls can be executed using Win32::API if a Perl interface to them doesn't already exist.

Re: [OT] Mouse Lock/Unlock using Perl
by chargrill (Parson) on Dec 11, 2006 at 04:27 UTC

    sanPerl:

    Just finish your migration to linux from windows and your virus troubles will become much less troublesome.

    Plus, the perl module for low level OS/hardware manipulation isn't available on windows anyhow.



    --chargrill
    s**lil*; $*=join'',sort split q**; s;.*;grr; &&s+(.(.)).+$2$1+; $; = qq-$_-;s,.*,ahc,;$,.=chop for split q,,,reverse;print for($,,$;,$*,$/)
    A reply falls below the community's threshold of quality. You may see it by logging in.
Re: [OT] Mouse Lock/Unlock using Perl
by geekphilosopher (Friar) on Dec 11, 2006 at 06:18 UTC

    If it's a virus that's affecting the hardware, there's not a lot that Perl will be able to do. If the mouse is locked but everything else is fine (keyboard works, etc), you may have a bad mouse. If the mouse is getting locked, and everything on screen is frozen, then it's more probably that your box is hard-locking - this could be a problem with your CPU (overheating, etc.), your RAM, or your hard drive.

    Either way, this most likely isn't something that can be solved with software.

Re: [OT] Mouse Lock/Unlock using Perl
by derby (Abbot) on Dec 11, 2006 at 13:42 UTC

    Maybe it's me ... but I would have just replaced the mouse.

    -derby
Re: [OT] Mouse Lock/Unlock using Perl
by ambrus (Abbot) on Dec 12, 2006 at 09:57 UTC

    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.