Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - Strange Sendkeys() problem

Reply
 
Old 03-02-2009   #1 (permalink)
Kryten


 
 

Strange Sendkeys() problem

Hi,
For quite a while now I've been using the wscript.shell sendkeys
method
with Procomm Plus to automate some predictable transactions.

Never had a problem, works as expected.

Now we have to use Hummingbird Host Explorer rather than Procomm
and now my commands are showing extra characters in the terminal.

Eg

If I do a $shell.sendkeys("LD 20^M")

what appears on the display is something like a
reversed question mark then a space then the characters. But of course
it's too late as the application I am telnetting to spits out the
command as
not recognised.

I have tried just about every combination of VT emulation I can think
of and
cannot see where this is coming from. Procomm and Hyperterminal are
perfect.

The weird thing is the send() method available in the AutoitX3.control
comobject
works great! No extra characters there at all....but it's not going to
be possible
to install AutoIt on all the desktops that use this application.

Anyone know in which way(s) the AutoIT send differs from the
script.shell sendkeys ?

......Cos I'm stuck!

Thanks

Stuart



My System SpecsSystem Spec
Old 03-02-2009   #2 (permalink)
Kryten


 
 

Re: Strange Sendkeys() problem

That's actually quite amazing, I've been looking at this nearly all
day then
about five minutes after posting I find the answer. How often does
that happen?

The problem was actually the keyboard file. Remapping the <Return> key
to be
ENTER rather than NEWLINE did the trick.

Thanks anyway,
Stuart
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Using sendkeys in a web form VB Script
Sending Alt-Space with SendKeys in C# .NET General
sendkeys, ie7, forms, any new bugs? VB Script
SendKeys to cmd.exe PowerShell
Sendkeys problem with Vista Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46