Jump to content

"Send" slows down


 Share

Recommended Posts

I wrote a script that will send keystrokes to a DOS based program.

First 10 keystrokes or so are very fast, but the rest are very slow - takes a second for each keystroke.

Here is a sample script of what I did.

Does anyone know why it's slowing down.

-------------------------------------

Opt("SendKeyDelay", 0)

Opt("SendKeyDownDelay", 0)

Opt("WinWaitDelay", 1)

Sleep(1000)

Send("{INS}")

Send("A")

Send("TRO")

Send("{ENTER}")

Send("1")

Send("{ENTER}")

Send("{ESC}")

send("E")

Send("C")

Send("RTU RESTART dsafsdfasdf adsf sadf dsaf dsaf dsaf dsaf sadf asdf dsa")

Send("{ENTER}")

---------------------

Any suggestions are greatly appreciated.

Link to comment
Share on other sites

ClipPut("RTU RESTART dsafsdfasdf adsf sadf dsaf dsaf dsaf dsaf sadf asdf dsa")

Sleep(50)

Send("^v")

Maybe the app is setting the limit?

Unfortunately this DOS program does not accept CTRL-V or any other windows shortcuts.

I did some more tests and found that the speed factor is very random. One time I run the script, the speed is incredible and the next time it's pretty much 1 keystroke a second. When I used AutoIt2 on Windows2000, the speed was pretty good and very consistent. Now, the company upgraded our computers to WinXP PRO, both AutoIt2 and 3 are inconsistent with keystroke speeds to this particular program.

The program I'm using is called prologic.exe, and it's only 273kb - if someone is willing to experiment, I can email the program and you can see what I mean.

thank you

Link to comment
Share on other sites

Look for a PM from me about sending me the file to work with...

You might also want to try running the DOS program in one of the "compatibility modes". See the properties of the Windows shortcut to the DOS program for the "Compatibility tab" or ask the XP help about the Compatibility Wizard... ...just a thought.

[size="1"][font="Arial"].[u].[/u][/font][/size]

Link to comment
Share on other sites

Look for a PM from me about sending me the file to work with...

You might also want to try running the DOS program in one of the "compatibility modes". See the properties of the Windows shortcut to the DOS program for the "Compatibility tab" or ask the XP help about the Compatibility Wizard... ...just a thought.

I tried "Compatibility tab" using Win 95, NT, 2000 - all of them behave the same.

I will email the prologic.exe program to the email you specified.

Thank you very much for the help.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...