Re: Generic SendInput samples?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Bob Butler wrote:
"Karl E. Peterson" <karl@xxxxxxxx> wrote in message
news:e8lTzf7JIHA.2064@xxxxxxxxxxxxxxxxxxxxxxx
Well, not necessarily. It's definitely not working for me, under Vista.
Fwiw, here's the matrix that I'm seeing, when I pass "{home}+{end}" to
SendInput and SendKeys in various OSes:

SendInput SendKeys
Vista NO NO
XP/SP2 NO YES
2000 YES YES

For me it's:

SendInput SendKeys
Vista (Ultimate) Yes Yes
XP/SP2 (VMWare) No Yes
2000/SP4 No Yes

Makes no damn sense. I tried it on two 2000 systems, both SP4, one real and one
VPC -- both worked fine with both methods. Could it be the friggin runtimes?

2000/SP4 - 6.0.97.82
XP/SP2 - 6.0.97.82
Vista - 6.0.97.97

Nope, doesn't look like that, given they're the same on XP/2K here.

SendKeys reports "permission denied" in the IDE under Vista but runs OK
compiled.

Yeah, it'll do that (if UAC is turned on), which is why I wanted to get this
SendInput one working.

Nothing like consistency! <g> I tried a richtextbox and a combobox with the
same results; I don't think I have a control that allows typing that isn't
based on an edit control.

It's not really something that's a deal killer, for me, but I'd sure like it to get
working. At least be consistent!
--
..NET: It's About Trust!
http://vfred.mvps.org


.