Hiya
There is a Button that i need to click on while holding down the Left Ctrl key
Is that possible in Ranorex, seems you can only click with a specific mouse button, but no while a key is being pressed.
Thanks
Ctrl + Left Click
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
There is no method in the Adapter (since keyboard input is always global and not specific to an element), but there are methods in the Keyboard class which provide that functionality: the Keyboard.Down and Keyboard.Up methods.
Regards,
Alex
Ranorex Support Team
Code: Select all
Keyboard.Down(System.Windows.Forms.Keys.ControlKey);
button.Click();
Keyboard.Up(System.Windows.Forms.Keys.ControlKey);
Alex
Ranorex Support Team