Note that there are some explanatory texts on larger screens.

plurals
  1. POSending simulated click via WebBrowser in C# to flash object embedded in HTML
    primarykey
    data
    text
    <p>I have not been able to find a way to send a simulated click to a flash .SWF application on a site I'm visiting using the WebBrowser control in WinForms.</p> <p>Though I've read countless posts on the subject, there seems to not be much information floating around on the internet. The only resources I've found here that technically provide answers for my question are:</p> <p><a href="https://stackoverflow.com/questions/4009479/communicate-with-flash-object-from-webbrowser-with-c-sharp-net" title="Read packets">Reading Packets</a> - This link recommends reading the packets sent from the flash application and might be my only working solution.</p> <p><strong>Requiement: I do not wish to communicate directly with ActionScript to obtain my results. I just want it to blindly click the flash movie and wait for something to happen.</strong></p> <p>If it is not possible, I'd like feedback anyway. Thank you!</p> <hr> <p><strong>UPDATE: (3/23/2012 - 23/3/2012)</strong> </p> <p>Since no feedback, I figured I'd post an update</p> <p>I wound up just sniffing the packets sent by the .SWF, and then sent that same data via the webBrowserObject.Navigate method. Thanks anyway!</p> <hr> <p><strong>UPDATE: 3/31/2012 - 31/3/2012</strong></p> <p>Wound up bringing back to life my old debate of whether or not to use SendMessage or PostMessage to send an actual click to the window without hijacking the mouse. It seemed beneficial to have both the physical and imitated clicks as options/features for the program, so I wound up implementing the physical click as well, via PostMessage. What I did was: Grabbed the handle from the WebBrowser.Handle, looped through the handles, stopped looping at the "Internet Explorer_Server" handle, and then PostMessage()'d a double click to it at the coordinates specified.</p> <p>I hope this update is helpful for anyone who is reading up on ways to send clicks to the WebBrowser control without invoking a simulated click on a dom element.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload