Norman Diamond
2006-01-27 05:51:32 UTC
SendInput, PostMessage, etc., are supposed to be capable of sending user
input to a window. If it's the foreground window and the caller has a
handle and sufficient privileges, the functions indicate success. But
depending on what application owns the window, maybe the input gets there or
maybe the input is discarded. What is needed to make either SendInput or
PostMessage work reliably? (Preferably SendInput if it can be done
reliably.)
Working: cmd.exe, gvim.exe
Input discarded: notepad.exe, winword.exe, wordpad.exe
input to a window. If it's the foreground window and the caller has a
handle and sufficient privileges, the functions indicate success. But
depending on what application owns the window, maybe the input gets there or
maybe the input is discarded. What is needed to make either SendInput or
PostMessage work reliably? (Preferably SendInput if it can be done
reliably.)
Working: cmd.exe, gvim.exe
Input discarded: notepad.exe, winword.exe, wordpad.exe