How to communicate with Flash from WebBrowser ... For uploader [modified]
-
Hello, I am trying to make myself a simple metacafe uploader, and I am using the webbrowser to do that. Everything was working great with loggin in, navigating to upload page etc... I used the HtmlElement and setAttribute/Invoke to click and set the text fields:
HtmlElement password = wb.Document.All["sPass"];
assword.SetAttribute("value", this.password);Now I have a problem. To upload a video to metacafe, you first need to click on a flash button caleld Upload. There, a window appears to select a file, and after you press OK, the upload begins and you can enter the form information. My question is this: How can I enter the video file without seeing a popup window? Knowing that it's flash :(. Here is how the flash object looks: http://www.sodevrom.net/sample.html Above I copied only the part from the upload page that it's important to me. As you can see, a simple flash file appears. Now I want to simulate the click/enter of file without showing the file window. Any ideas on how I can do this? Thanks
modified on Sunday, October 24, 2010 1:31 PM