ControlSendKeys - ConsoleWindowClass

Class library usage, coding and language questions.
James Hirst
Posts: 21
Joined: Wed Dec 06, 2006 6:24 pm
Location: UK
Contact:

ControlSendKeys - ConsoleWindowClass

Post by James Hirst » Fri Jan 12, 2007 1:38 pm

Hi guys,

Using the ControlSendKeys function, I'm having problems sending some keystrokes to a command prompt window. How do the following keys get sent to this window?

:
\
.
SHIFT

For example, I'm trying to send the following "c:\" to the ConsoleWindowClass.

Thanks,
James

admin
Site Admin
Site Admin
Posts: 350
Joined: Wed Jul 05, 2006 7:44 pm

Post by admin » Sun Jan 14, 2007 8:07 pm

Please use the Ranorex.ControlSendKeys() function with hWnd=0 for a command line application:

Code: Select all

Ranorex.ControlSendKeys(0, 'c:\\temp')
Gabor Herget
Ranorex Team