![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | 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 Specs![]() |
| | #2 (permalink) |
| | 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 Specs![]() |
![]() |
| 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 | |||