-
July 17th, 2013, 06:04 AM
#1
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>
-
July 17th, 2013, 07:57 AM
#2
Re: C# WebBrowser and swf textbox and button
I don't think that it is possible to copy text from a compiled Flash object
-
July 17th, 2013, 11:04 AM
#3
Re: C# WebBrowser and swf textbox and button
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
-
July 17th, 2013, 11:25 AM
#4
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
-
July 17th, 2013, 11:29 AM
#5
Re: C# WebBrowser and swf textbox and button
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
-
July 17th, 2013, 02:02 PM
#6
Re: C# WebBrowser and swf textbox and button
Most likely you can do it with UIAutomation.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|