in reply to Re^2: Sending a message to Win32 Dialog in background.
in thread Sending a message to Win32 Dialog in background.

Hi, Thanks for your responses, win32 windows will indeed process the messages sent to them no matter whether they are foreground or background, but i am facing an issue particularly here. I think the only way to achieve this could be to set the required window to foreground and then sendkeys. Let me check other options.

  • Comment on Re^3: Sending a message to Win32 Dialog in background.

Replies are listed 'Best First'.
Re^4: Sending a message to Win32 Dialog in background.
by Corion (Patriarch) on Oct 31, 2012 at 10:15 UTC

    As the alternative, you could try to send the keyboard messages directly to the appropriate window instead of using SendKeys. This will not always work in a convenient way, as the keycodes and keyboard states do not necessarily translate into Windows messages.