Ranorex

ControlSendKeys - ConsoleWindowClass

 
Post new topic   Reply to topic    Ranorex Forum Index -> RanorexPython
View previous topic :: View next topic  
Author Message
James Hirst



Joined: 06 Dec 2006
Posts: 21
Location: UK

PostPosted: Fri Jan 12, 2007 2:38 pm    Post subject: ControlSendKeys - ConsoleWindowClass
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
Back to top
View user's profile Send private message Visit poster's website
admin
Site Admin


Joined: 05 Jul 2006
Posts: 351

PostPosted: Sun Jan 14, 2007 9:07 pm    Post subject:
Please use the Ranorex.ControlSendKeys() function with hWnd=0 for a command line application:
Code: click into code to enlarge
Ranorex.ControlSendKeys(0, 'c:\\temp')

Gabor Herget
Ranorex Team
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Ranorex Forum Index -> RanorexPython All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum