Timing

Hi

I'm using sendkey to fill some form field. Unfortunately sendkey is too fast thats why the form is not filled properly. So tried to add a 'sleep(ms)' command before each sendkey command. Also this give me troubles, maybe because kernel. Now I'm trying to replace the sleep function with 'Wait' (which is working) but lowest level is in seconds and not in ms (Application.wait(1000) not working). Is there another way to solve this problem?

Thx mg
LVL 1
mgroyalAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

TooKoolKrisCommented:
Try putting your sleep commands in after each sendkey instead of before it. I normally give 2000ms for each keystroke.
0
mgroyalAuthor Commented:
I can't use the Sleep Function because the background process should go on...
0
mgroyalAuthor Commented:
increased to 150 for proper solution
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

TooKoolKrisCommented:
What background process, you said yourself that you were wanting the application to wait. If you want a seperate process then create one that is independent of the sendkey process.
0
mgroyalAuthor Commented:
I'm sending data with sendkey to a 'report request'. The report request is a macro in excel and get the data from oracle for displaying them in excel. There're several bg-processes like db-connection etc. Anyway when I'm using sleep function the form is freezing (conflict?) for about 5 seconds and after data nothing happens (Also when I use sleep after sendkeys). When I'm using the wait function it's working (wait does not stop the backround processes) but I can't wait 1 second for every key which I sending. I need ms...
0
TooKoolKrisCommented:
Oh, I see what you mean now. This is a long shot but see it the wait function will accept a decimal like .5
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mgroyalAuthor Commented:
solved....
0
TooKoolKrisCommented:
how so?
0
anaadoulCommented:
please close the question or delete it

---------------------------------
There Are 10 Kind OF People
Those Who Understands Binary AND Those Who Don't
0
TooKoolKrisCommented:
Yea, and along with your solved solution how about posting why I should accept fewer points while your at it.

Thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.