in reply to Caps Lock problem @ SendKeys method in Win32::GuiTest module

<shameless plug>You might have better luck getting the status with Win32::KeyState.</shameless plug>

use Win32::GuiTest qw(SendKeys); use Win32::KeyState qw(:get); SendKeys("{CAPS}") if GetCapsLock();

Note: On Win9x systems, you cannot use SendKeys to turn on or off NumLock and you might have problems with ScrollLock and CapsLock.

Replies are listed 'Best First'.
Re: Re: Caps Lock problem @ SendKeys method in Win32::GuiTest module
by banduwgs (Beadle) on Aug 18, 2003 at 10:24 UTC
    Yeeh! Even it shameless to use ;-), perfectly matches my requirements, Thanks - SB.