Re: Programmatically holding down control
"Dan Gistenson" <d.gistenson@sbcglobal.net> wrote in message
news:jYpkj.88429$YL5.30543@newssvr29.news.prodigy.net...
David and AJ,
Thanks for all of the help. Since the structure used by SendInput, the
INPUT
structure, requires a version of NT later than 4.0, and my version of
Windows 98se has a winuser.h file that indicates I don't have an NT
version
later than 4.0, I can't use SendInput().
I have been able to use keybd_event() which works when I use vc6's debug
to
go step by step (using the f10 key). The call to keybd_event() does press
and hold the control key, but if I run the program, either in debug or
not,
or if I use debug's control-f10 to execute to a statement following the
call
to keybd_event() but in the same function, the keybd_event() doesn't work.
This is getting very frustrationg. I'm not sure how to work through this.
Dan
Windows tracks keyboard state for each thread, so all this switching in and
out of the debugger will confuse it. But if your app works without running
it in the debugger, that's the important thing, isn't it?
-- David