Alicya619
5 years agoOccasional Contributor
How do I simulate holding "UP" key
Hello all,
I'm trying to simulate a press key continuously on "UP" keys but I expected to have the UP key press until it release (and so my value going up for several unit) but it's not the case, it's only one unit by one. I'm doing this :
Sys.Desktop.KeyDown(VK_UP);
aqUtils.Delay(TIMEOUT_DELAY, "Step 7 - Wait for 1.5s");
Sys.Desktop.KeyUp(VK_UP);
I have a look at these topics (not helpful):
- https://community.smartbear.com/t5/TestComplete-Desktop-Testing/Press-and-hold-2-keys/m-p/182354
I tried also to record the test, to use different objects, different application ... but nothing works.
Does someone have the answer :
- How to do it ?
- Why it's not working ?
Thank you in advance
Alicya