Jump to content
Sign in to follow this  
TolikProl

"Send" slows down

Recommended Posts

TolikProl

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.

Share this post


Link to post
Share on other sites
JustinReno

Does removing these help:

Opt("SendKeyDelay", 0)
Opt("SendKeyDownDelay", 0)

Share this post


Link to post
Share on other sites
TolikProl

Does removing these help:

Opt("SendKeyDelay", 0)
Opt("SendKeyDownDelay", 0)
It did speed it up little bit more when I removed those two lines. But it is about 3/4 of a second for each keystroke.

Share this post


Link to post
Share on other sites
herewasplato

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

Sleep(50)

Send("^v")

Maybe the app is setting the limit?


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

Share this post


Link to post
Share on other sites
TolikProl

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

Share this post


Link to post
Share on other sites
herewasplato

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]

Share this post


Link to post
Share on other sites
TolikProl

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.

Share this post


Link to post
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
Sign in to follow this  

×