[英]Clicking a .swf button on a webpage in C# windows forms application webbrowser
I am trying to click on a shockwave flash button in my C# windows forms webbrowser. 我试图单击C#Windows窗体Web浏览器中的Shockwave Flash按钮。 Currently in my windows forms application, I sign into the website and go the webpage where the button is.
当前,在我的Windows窗体应用程序中,我登录该网站并转到该按钮所在的网页。 I want to then click on my windows form button, and have it click the flash button 5 times with about 15 seconds pause in between clicks.
然后,我想单击我的Windows窗体按钮,让它单击Flash按钮5次,两次单击之间的间隔约15秒。 As of now, I have nothing, but a lot of hours of googling and getting nowhere.
截至目前,我什么都没有,但是有很多小时的谷歌搜索和摸索。 From what I can tell and have played around with, the mechanics is all wrapped up in the button_2.swf and I have tried to call the javascripts on the website but nothing happens.
据我所知和所使用的方法,其机制全部包含在button_2.swf中,并且我尝试在网站上调用javascript,但没有任何反应。 In the swf, you need to 'rollOver' the flash button and then 'press' to run 'gotoandplay(11)' and at some point there is some xml code running at the end.
在swf中,您需要“滚动” Flash按钮,然后“按下”以运行“ gotoandplay(11)”,并在某个时刻最后运行一些xml代码。 Yes there is the no flash script in the html code, but it doesnt work properly, so that is out of the question.
是的,在html代码中没有Flash脚本,但是它不能正常工作,所以这是不可能的。 The html code for the button is as follows:
该按钮的html代码如下:
<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>
way 0: gotoandplay(11) can do with direct way 方式0:gotoandplay(11)可以直接进行
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.