Sending Alt-Space with SendKeys in C#

  • Thread starter Thread starter Leben Ojanen
  • Start date Start date
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?
 
Back
Top