Page 1 of 1
Press and Hold KeyStrokes
Posted: Thu Jan 28, 2010 9:42 pm
by costamesakid
Is it possible to record a key sequence and have the keys pressed down for a period of time. Such as Ctrl+Alt+Delete to get to the reboot dialog?
When I record the sequence in Ranorex and play back, Ranorex will press Ctrl then release then press Alt then release, etc. Thanks
Re: Press and Hold KeyStrokes
Posted: Thu Jan 28, 2010 10:28 pm
by Ciege
Somthing like this?
Code: Select all
Keyboard.Press("{ControlKey DOWN}{Home}{ControlKey UP}");
Re: Press and Hold KeyStrokes
Posted: Fri Jan 29, 2010 10:08 am
by Support Team
Usually, if you record such a keystroke with Ranorex Recorder, it should generate a Keyboard Sequence action containing the exact same string ciege posted before.
However, Ctrl+Alt+Delete will most probably not work, because it is a special keyboard shortcut Windows won't allow to be simulated by an automation program for security reasons.
Regards,
Alex
Ranorex Support Team