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 :
aqUtils.Delay(TIMEOUT_DELAY, "Step 7 - Wait for 1.5s");
I have a look at these topics (not helpful):
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
I tried it and I get this :
The 1rst part (with many Up) corresponds to press 'Up' continiously and the second part is when I press 'Up' two distinct times.
I tried this
As per https://support.smartbear.com/testcomplete/docs/reference/test-objects/members/common-for-sys-deskto..., what if you try something like this:
Does it help?
The code given
<object>.Keys("[Hold]a[P2000][Release]"); => nothing
<object>.Keys("[Hold][Up][P2000][Release]"); => increase one unit
If I tried this :
I will have 3 unit increasement, one for each 'Keys' command lines
When I'm pressing continuously on a key, I will expect a result like this : 'aaaaaaaaaaaaaaa' and not like that 'a'.
It's not about a number it's about the possibility to do it, let's say :
As a user of my application, I want to have an increase of several digits when I'm continuously pressing on UP key. By opposition, when I'm pressing one time on UP key, I want an increase of one and only one digit.
Do you have the solution ?