how can we map keyboard events to our own application

Ask general questions here.
d_mak
Posts: 3
Joined: Thu Sep 04, 2008 5:08 pm

how can we map keyboard events to our own application

Post by d_mak » Sun Sep 07, 2008 9:50 pm

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...??

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Post by Support Team » Mon Sep 08, 2008 9:56 am

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

d_mak
Posts: 3
Joined: Thu Sep 04, 2008 5:08 pm

keyboard events

Post by d_mak » Wed Sep 10, 2008 10:15 am

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++.

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Post by Support Team » Wed Sep 10, 2008 3:08 pm

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