PostMessage a mouse click without bringing the target window into focus??
-
I've adapted other code i found on the internet to use postmessage instead of mouse_event i think it was: http://wolfsfiles.googlepages.com/MouseSimulatorPostMessage.cs[^] So... my goal is to send mouse clicks to a window without bringing it into focus... that code does do the mouse clicks just fine but it automatically brings the window into focus. (if i use sendmessage it does the same behavior... also what's the difference between postmessage and postmessageA? :P) So is their anything i can do to send the mouse click without bringing the window into focus.
-
I've adapted other code i found on the internet to use postmessage instead of mouse_event i think it was: http://wolfsfiles.googlepages.com/MouseSimulatorPostMessage.cs[^] So... my goal is to send mouse clicks to a window without bringing it into focus... that code does do the mouse clicks just fine but it automatically brings the window into focus. (if i use sendmessage it does the same behavior... also what's the difference between postmessage and postmessageA? :P) So is their anything i can do to send the mouse click without bringing the window into focus.
FocusedWolf wrote:
is their anything i can do to send the mouse click without bringing the window into focus.
I don't think so. Depending on what your higher goals are, there may be better ways to achieve them. :)
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.