Forum Discussion
Hi,
Have you read https://support.smartbear.com/testcomplete/docs/reference/test-objects/members/common-for-sys-desktop-pda/keys-method-sys-desktop-object.html#parameters and https://support.smartbear.com/testcomplete/docs/app-objects/simulating/keystrokes.html help topics and tried what is suggested there? Doesn't it work?
Specifically, I mean [Hold] constant and .KeyDown()/.KeyUp() methods of Desktop and LLPlayer objects.
- Mathit6 years agoContributorYes, I did. As I mentioned, I’m trying .keys(“-^x”), which is not working. Is there an alternate suggestion?
- tristaanogre6 years agoEsteemed Contributor
The alternate suggestion was given... using the LLPlayer or other objects, send keydown, keyup, etc., commands.
- Mathit6 years agoContributor
yes, i tried that as well. below is my code for ctrl Alt r
Sub Testing123
Call LLPlayer.KeyDown(VK_CONTROL, 2000) ' Presses Control
Call LLPlayer.KeyDown(VK_MENU, 2000) ' Presses Alt
Call LLPlayer.KeyDown(82, 2000) ' Presses r
Call LLPlayer.KeyUp(VK_CONTROL, 1000)
Call LLPlayer.KeyUp(VK_MENU,1000)
Call LLPlayer.KeyUp(82,1000)
End Sub
Related Content
- 10 years agolhuang5
- 2 months agoStoplight
- 4 years agolongchasen
Recent Discussions
- 2 days agovladd1