Forum Discussion
What code did you get when you recorded the Up action that you wanted?
- Alicya6194 years agoOccasional Contributor
I tried it and I get this :
Aliases.MainTabControl.rowHeaderContent.Click(5, 12);
NameMapping.Sys.Wdh_Digisharp_UI_Shell.MainWindow.MainRegion.ThresholdsView.PhysicalTab.PhysicalTableRight.Keys("[Up][Up][Up][Up][Up][Up][Up][Up][Up][Up][Up][Up][Up]");
Aliases.MainTabControl.rowHeaderContent2.Click(5, 11);
NameMapping.Sys.Wdh_Digisharp_UI_Shell.MainWindow.MainRegion.ThresholdsView.PhysicalTab.PhysicalTableLeft.Keys("[Up][Up]");The 1rst part (with many Up) corresponds to press 'Up' continiously and the second part is when I press 'Up' two distinct times.
Alicya
- Alicya6194 years agoOccasional Contributor
I tried this
Sys.Desktop.KeyDown(VK_CONTROL);
item1.Click();
item2.Click();
item3.Click();
Sys.Desktop.KeyUp(VK_CONTROL);And I get the expected for behavior, my 3 items are correctly selected..The issue it really to press continuously on a key, if I'm pressing during two seconds on 'a' I will expect a result like this : 'aaaaaaaaaaaaaaa' but what I get is 'a'.Alicya- AlexKaras4 years agoChampion Level 3
Hi Alicya,
As per https://support.smartbear.com/testcomplete/docs/reference/test-objects/members/common-for-sys-desktop-pda/keys-method-sys-desktop-object.html, what if you try something like this:
<object>.Keys("[Hold]a[P2000][Release]");
<object>.Keys("[Hold][Up][P2000][Release]");
Does it help?
Related Content
- 6 years ago
- 5 years ago
Recent Discussions
- 2 days ago