C# WebBrowser and swf textbox and button
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6

Thread: C# WebBrowser and swf textbox and button

  1. #1
    Join Date
    Jul 2013
    Posts
    3

    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%">&nbsp;&nbsp;&nbsp;<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>&nbsp;&nbsp;&nbsp;blahblahblah "blah".</td></tr></tbody></table></form>

  2. #2
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,090

    Re: C# WebBrowser and swf textbox and button

    I don't think that it is possible to copy text from a compiled Flash object

  3. #3
    Join Date
    Jul 2013
    Posts
    3

    Re: C# WebBrowser and swf textbox and button

    Quote Originally Posted by HanneSThEGreaT View Post
    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

  4. #4
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,090

    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

  5. #5
    Join Date
    Jul 2013
    Posts
    3

    Re: C# WebBrowser and swf textbox and button

    Quote Originally Posted by HanneSThEGreaT View Post
    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

  6. #6
    Arjay's Avatar
    Arjay is offline Moderator / MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    11,201

    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
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center