Ranorex

SendKeys - Timing issue

 
Post new topic   Reply to topic    Ranorex Forum Index -> RanorexPython
View previous topic :: View next topic  
Author Message
James Hirst



Joined: 06 Dec 2006
Posts: 21
Location: UK

PostPosted: Fri Apr 13, 2007 10:45 pm    Post subject: SendKeys - Timing issue
Hi all,

Whilst testing a script I noticed that there appears to be a timing issue when sending keystrokes to a command prompt window. More often than not only the first few characters would be sent before the script proceeded on with the next statement.

I've tried breaking up the string of keystrokes but short of adding plenty of sleep statements can you suggest anyway around this?

A developer I work with suggested instead of sending keystokes I should somehow create an object of the command window and write to that object instead.

I'm developing on a fast XP machine and testing on a slower 2K laptop.

Thanks,
James
Back to top
View user's profile Send private message Visit poster's website
admin
Site Admin


Joined: 05 Jul 2006
Posts: 351

PostPosted: Sun Apr 15, 2007 9:07 pm    Post subject:
The SendKey function has a new parameter in the next version (V1.2.0).

Code: click into code to enlarge
SendKeys(keys, time)


You will be able to set the time between each key-press in milliseconds with the "time" parameter.

RanorexRecorder uses also this functionality if the replay speed will be changed.

Jenö
Ranorex Team
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Ranorex Forum Index -> RanorexPython All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum