Sign in to follow this  
Followers 0
Maras

DOS very slow !?

12 posts in this topic

Hi all,

I got problem when operating on DOS app. It fills inputs very slow. It's about 1char/1sec - too slow for me. Any idea to speed it up ?

Thanks & greets,

Maras

Share this post


Link to post
Share on other sites



AutoItSetOption ( "SendKeyDelay",1 )


 

Spoiler

shoot_zpsfd329d66.png
dontbelieveeverythingyouthink_zps0e1e900

Madness is the first step to understanding...

Share this post


Link to post
Share on other sites

Does not help. Problem is, that when typing in DOS window it is slow too. So AutoIt only types (send key by key), any it is slow. Maybe i should change something in DOS window... but what ?

Maras

Share this post


Link to post
Share on other sites

Does not help. Problem is, that when typing in DOS window it is slow too. So AutoIt only types (send key by key), any it is slow.  Maybe i should change something in DOS window... but what ?

Maras

Never tried it but can you put all the text into a var then send it all at once? Probably still write one at a time. Why are you writing to a dos window?

Rick


Only $2.00 with Resale Rights How to Block Better for Martial Artists and NonMartial Artistshttp://kirkhamsebooks.com/MartialArts/Bloc...tterEbook_m.htm

Share this post


Link to post
Share on other sites

Yeah. Can't you run a command?

Share this post


Link to post
Share on other sites

Hi

It's in var.

I have to insert data from file to old fashion (16bit) dos app. I do not know any other option like only typeing all data. Problem is that it works very very slow...

Do not know what i have to set.

Maras

Share this post


Link to post
Share on other sites

If it's some 3rd party application that isn't detecting the keys when you type them at a fast enough speed, there is nothing AutoIt can do directally to change that. Instead, you should play around with your application to see if you can increase the key polling so that it will accept typed text faster. If you figure out a way to do that, you could probably have AutoIt set the faster key polling for you so that it could send information faster.

Another suggestion: if you cannot increase the rate at which the application detects keys, you should try to decrease the speed at which AutoIt is sending the keys so that they don't stack up and have a chance of getting lost.


[font="Optima"]"Standing in the rain, twisted and insane, we are holding onto nothing.Feeling every breath, holding no regrets, we're still looking out for something."[/font]Note: my projects are off-line until I can spend more time to make them compatable with syntax changes.

Share this post


Link to post
Share on other sites

Thanks for your sugestion. Everything is correct.

When typeing by hands it works fast enough, but using AutoIt is slower. I do not know why. It's 3 chars per 2 sec. IMO very, very slow. Maybe i should set something in dos console, but i have no idea what. It is old fashion clipper app.

If any idea let me know please.

Maras

Share this post


Link to post
Share on other sites

Another suggestion: if you cannot increase the rate at which the application detects keys, you should try to decrease the speed at which AutoIt is sending the keys so that they don't stack up and have a chance of getting lost.

Did you try this? Hint: look up the AutoItSetOption function, and see what it says about SetKeyDelay.

[font="Optima"]"Standing in the rain, twisted and insane, we are holding onto nothing.Feeling every breath, holding no regrets, we're still looking out for something."[/font]Note: my projects are off-line until I can spend more time to make them compatable with syntax changes.

Share this post


Link to post
Share on other sites

I use SetKeyDelay =5, when i down to 3 it starts lose characters. So i keep it = 5 for safety.

Maras

Share this post


Link to post
Share on other sites

Try to put the text into the clipboard and then paste it to the DOS application window - an old trick under AutoIt 2. Hope it helps.

Share this post


Link to post
Share on other sites

Not that i know if this will help, but try to change the buffer size and number of buffers.


Were ever i lay my script is my home...

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  
Followers 0