Sending Alt-Space with SendKeys in C#

L

Leben Ojanen

I'm trying to automate the copy / paste of an entire dos window, in order to
capture text data from a telnet session. To do this I automate the alt-space
dropdown menu, then navigate to select all and copy.

I'm trying to use SendKeys but so far the documentation seems to be wrong
about the Alt-Space combination. Sending "% " doesn't work, nor does
anything else I've seen online. The only way I can send the actual Alt-Space
command is by using "%( )" (notice there are two spaces). Unfortunately
this sends a regular space to the screen, which on specific screens scrolls
the data I'm trying to copy before it's copied.

Is there an alternative way to Alt-Space or something I can use besides Send
Keys?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top