SendKeys RCONTROL possible?

  • Thread starter Thread starter Joe S
  • Start date Start date
J

Joe S

I have been searching all over for how to use SendKeys to send
Keys.RControlKey.

I've tried all manner of byte conversions and just can't get it to
work.

Pity there is no {RCONTROL} defined for me!

Any help is very much appreciated.

Thanks,

Joe
 
Joe,

You might want to use the SendInput API function through the P/Invoke
layer instead. This will fill in the gaps that SendKeys has.
 
Joe,

You might want to use the SendInput API function through the P/Invoke
layer instead. This will fill in the gaps that SendKeys has.

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)


I have been searching all over for how to use SendKeys to send
Keys.RControlKey.
I've tried all manner of byte conversions and just can't get it to
work.
Pity there is no {RCONTROL} defined for me!
Any help is very much appreciated.

Joe


Nicholas,

I got that working, so I can do a few things I could not before, but
now I am running into the case where I want to send HOME, PAGE_DOWN,
etc. from the Insert/Delete/Home/End/Page Up/Page Down cluster, but
what is actually being sent is the equivalent keys from the numeric
keypad.

To be more specific, I am controlling a legacy terminal emulator
(BluVista), and it is interpreting VK_NEXT = PgDn (3 on the numeric
keypad) with NumLock off as "3". I need to be able to send Page Down
from the cluster to control the emulator properly.

Is there some twiddle in SendInput that tells it whether to send Page
Down or PgDn?


Joe
 
Joe said:
Joe,

You might want to use the SendInput API function through the
P/Invoke layer instead. This will fill in the gaps that SendKeys
has.

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)


I have been searching all over for how to use SendKeys to send
Keys.RControlKey.
I've tried all manner of byte conversions and just can't get it to
work.
Pity there is no {RCONTROL} defined for me!
Any help is very much appreciated.

Joe


Nicholas,

I got that working, so I can do a few things I could not before, but
now I am running into the case where I want to send HOME, PAGE_DOWN,
etc. from the Insert/Delete/Home/End/Page Up/Page Down cluster, but
what is actually being sent is the equivalent keys from the numeric
keypad.

To be more specific, I am controlling a legacy terminal emulator
(BluVista), and it is interpreting VK_NEXT = PgDn (3 on the numeric
keypad) with NumLock off as "3". I need to be able to send Page Down
from the cluster to control the emulator properly.

Is there some twiddle in SendInput that tells it whether to send Page
Down or PgDn?

The KEYEVENTF_EXTENDEDKEY flag and/or the scan code, should differentiate
between them.
 
Joe said:
Joe,
You might want to use the SendInput API function through the
P/Invoke layer instead. This will fill in the gaps that SendKeys
has.
--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

I have been searching all over for how to use SendKeys to send
Keys.RControlKey.
I've tried all manner of byte conversions and just can't get it to
work.
Pity there is no {RCONTROL} defined for me!
Any help is very much appreciated.
Thanks,
Joe
Nicholas,

I got that working, so I can do a few things I could not before, but
now I am running into the case where I want to send HOME, PAGE_DOWN,
etc. from the Insert/Delete/Home/End/Page Up/Page Down cluster, but
what is actually being sent is the equivalent keys from the numeric
keypad.
To be more specific, I am controlling a legacy terminal emulator
(BluVista), and it is interpreting VK_NEXT = PgDn (3 on the numeric
keypad) with NumLock off as "3". I need to be able to send Page Down
from the cluster to control the emulator properly.
Is there some twiddle in SendInput that tells it whether to send Page
Down or PgDn?

The KEYEVENTF_EXTENDEDKEY flag and/or the scan code, should differentiate
between them.





That worked great. Thanks SO much to both of you for pointing me in
the right direction.



Joe
 
Joe said:
Joe said:
On Feb 5, 5:23 pm, "Nicholas Paldino [.NET/C# MVP]"
Joe,
You might want to use the SendInput API function through the
P/Invoke layer instead. This will fill in the gaps that SendKeys
has.
I have been searching all over for how to use SendKeys to send
Keys.RControlKey.
I've tried all manner of byte conversions and just can't get it to
work.
Pity there is no {RCONTROL} defined for me!
Any help is very much appreciated.



I got that working, so I can do a few things I could not before, but
now I am running into the case where I want to send HOME, PAGE_DOWN,
etc. from the Insert/Delete/Home/End/Page Up/Page Down cluster, but
what is actually being sent is the equivalent keys from the numeric
keypad.
To be more specific, I am controlling a legacy terminal emulator
(BluVista), and it is interpreting VK_NEXT = PgDn (3 on the numeric
keypad) with NumLock off as "3". I need to be able to send Page Down
from the cluster to control the emulator properly.
Is there some twiddle in SendInput that tells it whether to send
Page Down or PgDn?

The KEYEVENTF_EXTENDEDKEY flag and/or the scan code, should
differentiate between them.





That worked great. Thanks SO much to both of you for pointing me in
the right direction.



Joe

Comes from processing arrow keys using getch() a long long time ago.
 

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

Back
Top