C# WebBrowser and swf textbox and button
How can I select flash textbox, past text, and click button in C# WebBrowser?
TextBox and Button: http://s7.postimg.org/oh2w84js7/button.jpg
Form where button is:
Code:
<form name="working" action="object_do.php" method="POST"><br><table class="wb" width="100%"><tbody><tr><td class="wbwhite" align="center" colspan="2"><b>blahblahblah</b></td></tr><tr><td class="wb" width="140"><img src="work_codes/15903-34/1701507--381682.jpeg" width="250" height="60" border="0" name="imgcode"></td><td class="wblight" valign="center" width="100%"> <input type="hidden" size="4" name="code" autocomplete="off"><input type="hidden" value="5" name="id"><input type="hidden" value="5" name="id2"><script type="text/javascript">swfobject.registerObject("2e7f13a242369aa0a133ee3dced5bf5d", "9.0.0", "http://***/swffiles/expressInstall.swf");</script>
<div>
<object id="2e7f13a242369aa0a133ee3dced5bf5d" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="147" height="22" style="visibility: visible;">
<param name="movie" value="swffiles/459017015079176508wworkcode.swf?ver=1701507bf3d40fb076319ff7e6c2fc7a4898acdd88">
<param name="FlashVars" value="params=1701507|5|f3d40fb076319ff7e6c2fc7a4898acdd|">
<param name="bgcolor" value="#f5f3ea">
<param name="allowScriptAccess" value="always"><param name="wmode" value="opaque"><!--[if !IE]>-->
BUTTON AND TEXT BOX-----------> <object type="application/x-shockwave-flash" data="swffiles/459017015079176508wworkcode.swf?ver=1701507bf3d40fb076319ff7e6c2fc7a4898acdd88" width="147" height="22">
<param name="FlashVars" value="params=1701507|5|f3d40fb076319ff7e6c2fc7a4898acdd|">
<param name="bgcolor" value="#f5f3ea">
<param name="allowScriptAccess" value="always"><param name="wmode" value="opaque"><!--<![endif]-->
<div>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player"></a></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div></td></tr><tr><td class="wblight" colspan="2"><br> blahblahblah "blah".</td></tr></tbody></table></form>
Re: C# WebBrowser and swf textbox and button
I don't think that it is possible to copy text from a compiled Flash object
Re: C# WebBrowser and swf textbox and button
Quote:
Originally Posted by
HanneSThEGreaT
I don't think that it is possible to copy text from a compiled Flash object
I want to paste text from WebBrowser variable to flash object, in my case flash textbox, and click flash object = button after paste
Re: C# WebBrowser and swf textbox and button
I understand that is what you "need" to do, but I still do not think it is possible as the Flash Object is compiled as one object without any smaller windows inside. This is the same logic as attempting to paste text from a picture file which is impossible.
Not sure what you're attempting to do is legal? Is it your own flash object and your own site? Remember, these types of threads get frowned upon as it violates the AUP
Re: C# WebBrowser and swf textbox and button
Quote:
Originally Posted by
HanneSThEGreaT
I understand that is what you "need" to do, but I still do not think it is possible as the Flash Object is compiled as one object without any smaller windows inside. This is the same logic as attempting to paste text from a picture file which is impossible.
Not sure what you're attempting to do is legal? Is it your own flash object and your own site? Remember, these types of threads get frowned upon as it violates the AUP
But maybe I can click via coordinates,pastes,click button? another ideas how to solve this
I take all responsibility what I do
Re: C# WebBrowser and swf textbox and button
Most likely you can do it with UIAutomation.