troubleshooting Question

When keybrd_event and SendMessage(WM_KEYDOWN don't work???

Avatar of rpmccormi77
rpmccormi77 asked on
16 Comments1 Solution11987 ViewsLast Modified:
I am trying to control Google Earth.  I would like to use SendMessage(handle, WM_KEYDOWN, VK_?, 0) to control it without having to set focus using BringWindowToTop(handle), but for some reason it only works if it is on top.  The real problem is that I can't get it to accept a Shift-?.  I can press CTRL/ALT key combinations, but it when I do VK_SHIFT then VK_UP, it just interperates it as an up, not shift-up.  If I hold shift on my keyboard while it sends up it does a shift-up.  I have tried using WM_SYSKEYDOWN, VK_LSHIFT, VK_RSHIFT, and even keybrd_event(), but they all have the same problem.  What is going on here?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 16 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 16 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros