1
我想單擊我的C#窗體窗體webbrowser中的一個shockwave flash按鈕。目前在我的Windows窗體應用程序中,我登錄到網站並進入按鈕所在的網頁。然後,我想點擊我的窗口按鈕,然後點擊5次閃爍按鈕,並在點擊之間暫停約15秒。到目前爲止,我什麼也沒有,但是大量的搜索和搜索都沒有進行。從我可以告訴和玩過的東西,這些機制都包含在button_2.swf中,我試圖在網站上調用javascripts,但沒有任何反應。在swf中,你需要'滾動'閃光燈按鈕,然後'按'運行'gotoandplay(11)',並在某些時候有一些XML代碼在最後運行。是的,在HTML代碼中沒有flash腳本,但它不能正常工作,所以這是不可能的。按鈕的HTML代碼如下:在C#窗體窗體中單擊一個.swf按鈕應用程序webbrowser
<div id='button'>
<script type="text/javascript">
function disableButton() {
btn = document.getElementById('luckybutton');
btn.style.display = 'none';
btn_clicked = document.getElementById('luckybutton_clicked');
btn.style.display = 'block';
}
</script>
<div id='luckybutton' style="z-index:1">
<script language="javascript">
AC_FL_RunContent('codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0','width', '373','height', '373','src', '/images/buttons/','quality', 'high','pluginspage', 'http://www.macromedia.com/go/getflashplayer','align', 'middle','play', 'false','loop','true','scale','showall','wmode','transparent','devicefont','false','id', '','bgcolor', '#ddeef6','name', '','menu', 'true','allowFullScreen', 'false','allowScriptAccess','sameDomain','movie', '/images/buttons/button_2','salign', ''); //end AC code
</script>
<noscript>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="373" height="373" id="" align="middle" style="z-index:1">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="/images/buttons/button_2.swf" />
<param name="quality" value="high" /><param name="bgcolor" value="#ddeef6" />
<embed src="/images/buttons/.swf" quality="high" bgcolor="#ddeef6" width="373" height="373" name="" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
<!-- no_flash content -->
<a href="/button/push_the_button" data-method="post" onmousedown="disableButton();return false;" rel="nofollow"><img alt="Luckybutton" src="/images/slb/luckybutton.jpg?1286570555" /></a>
<!-- end no_flash content -->
</object>
</noscript>
</div>
<div id="luckybutton_clicked" style="display:none">
<img alt="Luckybutton" src="/images/slb/luckybutton.jpg?1286570555" />
</div>
</div>