Loading ...
Sorry, an error occurred while loading the content.

Re: get NUMLOCK status

Expand Messages
  • jonnyroberts1978
    This should work Win32::API- Import( user32 , GetKeyState , I , I ); print GetKeyState(0x90) & 1;
    Message 1 of 3 , Mar 12, 2007
    • 0 Attachment
      This should work

      Win32::API->Import('user32', 'GetKeyState', 'I', 'I');

      print GetKeyState(0x90) & 1;

      --- In perlguitest@yahoogroups.com, "dukestefjen" <jmvt@...> wrote:
      >
      > Is there any way to get the NUMLOCK keyboard status, So that I only
      > use SendKeys("{NUMLOCK}") when its already on?
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.