Page 1 of 1

how can we map keyboard events to our own application

Posted: Sun Sep 07, 2008 9:50 pm
by d_mak
Suppose we open mstsc.exe using c++ with the help of ranorex.h
and now i want to automate it by entering ip of my own choice in my code..
and then it will click connect....
can it be possible to map keyboard events with the help of ranorex...??

Posted: Mon Sep 08, 2008 9:56 am
by Support Team
Sorry, I do not exactly understand your question.
You can do the scenario you explained using Ranorex. Keyboard inputs can be simulated by using the Application.SendKeys method. But what do you mean by "map keyboard events"?

Regards,
Alex
Ranorex Support Team

keyboard events

Posted: Wed Sep 10, 2008 10:15 am
by d_mak
sir i want to know how to automate keyboard events to any application...
like if anyone wants to write something or press any key when his
application open so how can he automate things (tell me the exact function)using ranorex.h in visual c++.

Posted: Wed Sep 10, 2008 3:08 pm
by Support Team
As I said before, you can automate keyboard events using Ranorex. The C++ function is called RxControlSendKeys. To simulate key events to the currently active application use NULL for the hWnd parameter.

Regards,
Alex
Ranorex Support Team