Page 1 of 1

ControlSendKeys - ConsoleWindowClass

Posted: Fri Jan 12, 2007 1:38 pm
by James Hirst
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

Posted: Sun Jan 14, 2007 8:07 pm
by webops
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