• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 743
  • Last Modified:

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
0
mgroyal
Asked:
mgroyal
  • 5
  • 4
1 Solution
 
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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

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

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now