in reply to Deactivate/Activate Keyboard and mouse under Win32

Just a minor point, but you donīt have to create a new API object each time you call it. So this line:
my $BlockInput = new Win32::API($Library, $Function, $ref_ParamsList, +$ReturnValue) or die $^E;
could equally well be located outside the sub. Just a thought.

/J

Replies are listed 'Best First'.
Re: Re: Deactivate/Activate Keyboard and mouse under Win32
by Sniper (Scribe) on Jun 17, 2001 at 09:22 UTC
    Yes, you're right,
    it's a bad Copy/Paste when i extracted this Snippet from the module i'm writing...

    David "Sniper" Rigaudiere