Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Win32::Setupsup::Sendkeys - Is this a bug ?

by Sniper (Scribe)
on May 18, 2001 at 19:19 UTC ( #81527=perlquestion: print w/ replies, xml ) Need Help??
Sniper has asked for the wisdom of the Perl Monks concerning the following question:

I've a problem with Win32::Setupsup::Sendkeys :

When i want to send 'Ab' to a windows, this function send SHIFT+A and b but if CAPSLOCK is enabled, the windows receive 'aB' not cool !

I sent a mail to the module's author for his information.

My solution is test the CAPSLOCK state with GetKeyState function in user32.dll (thanks to Aldo for Win32::API), i'm writing a module (Win32::Keyboard) to do this properly...

David "Sniper" Rigaudiere

Comment on Win32::Setupsup::Sendkeys - Is this a bug ?
Re: Win32::Setupsup::Sendkeys - Is this a bug ?
by Corion (Pope) on May 18, 2001 at 19:26 UTC

    My guess is that this is how the module works, as it seems to be a "simple" wrapper around the Windows keyboard state API calls. Note that Windows itself and many applications were not built to be remotely driven by sending keystrokes, and be in for some interesting surprises when dealing with Windows 9x.

    I have a programm that sends keys to a Windows 9x DOS box, and if you're not really going native and talk to the keyboard driver, it's not happening under Windows 9x. Under NT, all is nice and shiny though, see my homepage if you need to deal with DOS boxes under Windows 9x.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://81527]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2014-07-28 04:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (185 votes), past polls