Simulating mouse events on a TWebBrowser
Posted on 2005-04-29
Hi, I'm writing an application that has some similarities with the RemoteDesktop function in windows.
In application A, we have a TWebBrowser control that I want to be able to control from application B, (which should be runing on a different computer)
A and B communicates via TCP network... (Indy10)
My plan was to make an imagecapture from the TWebBrowser component in A, and send that Image to B. The Image is then painted to a TCustomControl descendant in B, from which I also record all the WM_Mouse messages.
All WM_Mouse messages are sent over from B to A, and upon reception, they are posted to the TWebBrowser control.
I thought this would make it possible for me to control the TWebBrowser in A from B... but the WebBrowser control doesn't seem to react at all when I post the messages.
Any ideas why this doesn't work? or How this could be acheived in a better way?