|
-
Dec 9th, 2009, 06:54 PM
#1
Thread Starter
Junior Member
Seems it is impossible to send any key-combination to any application in background!
I've been trying for months, probably more then 100 hours. But still I can't control an application in background 
I can't use SendKey because I don't want the application get the focus.
I can't use those keyboard events to press CTRL or SHIFT while sending a WM_CHAR using a PostMessage, because having those key pressed they can disturb while working on an other application.
I can't use WM_COMMAND because some commands can't be found, like CTRL-A (Select All) and CTRL-C(copy). At least not in AdobeReader8
I can't even send the vbKeyL on the dropdown Edit-menu. Although it works in Notepad, the dropdown-menu in AbodeReader doesn't stay open to be able to send a key on that dropdown-window.
I coudn't find any working vb(a)-code. So I guess it's impossible to make a sub like SendAnyKeyCombinationToAnyAppInBackground(hWnd,Key$,bCtrl,bShift,bAlt) as well as PressAnyMenuItemOnAnyAppInBackground(hWnd,MenuName$,ItemName$) 
If someone could point me to something else I could try, please do!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|