SendKeys but hold down key for X seconds?

Class library usage, coding and language questions.
daluu
Posts: 23
Joined: Tue Jun 12, 2007 9:03 pm

SendKeys but hold down key for X seconds?

Post by daluu » Mon Jul 09, 2007 9:36 pm

SendKeys is very useful but is there a way to send key and keep it held down for X number of seconds?

For the application I am automating from, I can probably use Mouse action to click and hold down the virtual keypad on the screen (haven't really looked into the relevant Mouse class method for this option yet.)

Still, I would much prefer to be able to send a key & keep it held for X seconds.

Hope you will add this feature (if it doesn't already exist) to the next release of Ranorex.

admin
Site Admin
Site Admin
Posts: 350
Joined: Wed Jul 05, 2006 7:44 pm

Post by admin » Mon Jul 09, 2007 10:40 pm

I would much prefer to be able to send a key & keep it held for X seconds.
Which key do you want to hold down for X seconds?

Jenö
Ranorex Team

daluu
Posts: 23
Joined: Tue Jun 12, 2007 9:03 pm

Post by daluu » Tue Jul 10, 2007 1:04 am

Ideally, I would like to hold down any key (that SendKeys could send) for X seconds. Perhaps you could make a new overloaded method for SendKeys that takes a parameter for holding down key for X seconds?

admin
Site Admin
Site Admin
Posts: 350
Joined: Wed Jul 05, 2006 7:44 pm

Post by admin » Tue Jul 10, 2007 10:53 pm

We discussed this topic today and decided to support this feature in the next version.

Jenö
Ranorex Team

daluu
Posts: 23
Joined: Tue Jun 12, 2007 9:03 pm

Post by daluu » Wed Jul 11, 2007 1:22 am

Thanks. That would be great.