像这样的网页如何在webbrowser控件中实现学完一个课程后,自动点击学习下一个课程

时间:2021-03-02 17:00:30
像这样的网页如何在webbrowser控件中实现学完一个课程后,自动点击学习下一个课程
像这样的网页如何在webbrowser控件中实现学完一个课程后,自动点击学习下一个课程?
我是这样想的,1、读取已学的时间,2、读取课程的时长。3、如果已学时间>课程时长则点击下一个课程连接。
只是感觉在webbrowser控件中读取这种网页中的以上内容比较困难,请教高手该怎么实现学完一个课程后,自动点击学习下一个课程。我不是搞计算机的,只是业余爱好,最好提供详细的代码。
以下是部分网页代码,抱歉我觉得实在有点乱!
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
                            <div>
<table cellspacing="0" cellpadding="4" id="ContentPlaceHolder1_gvyx" style="color:#333333;width:99%;border-collapse:collapse;">
<tbody><tr class="gvhead" style="color:Black;background-color:#C5E4FC;font-weight:normal;height:25px;">
<th align="left" scope="col">课程ID</th><th align="left" scope="col">课程名</th><th align="left" scope="col">资源来源</th><th align="left" scope="col">主讲人</th><th align="right" scope="col">已学</th><th align="right" scope="col">时长</th><th align="center" scope="col">进度</th><th align="center" scope="col">评价</th>
</tr><tr style="color:Black;background-color:#9BD1FA;font-weight:normal;">
<td align="left" style="width:60px;">1007571</td><td align="left">
                                    <a id="ContentPlaceHolder1_gvyx_LinkButton1_0" href="javascript:__doPostBack('ctl00$ContentPlaceHolder1$gvyx$ctl02$LinkButton1','')" tabindex="0">依法行政视域下的*跨部门协同机制</a><img id="ContentPlaceHolder1_gvyx_kechengnew_0" src="images/zuixinziyuannew.gif">
                                </td><td align="left" style="width:100px;">国家行政学院</td><td align="left" style="width:50px;">周志忍</td><td align="right" style="width:30px;">20</td><td align="right" style="width:30px;">110</td><td align="left" style="width:40px;">
                                    <div id="ContentPlaceHolder1_gvyx_PanelOut_0" class="panelout" style="height:10px;width:40px;">

                                        <div id="ContentPlaceHolder1_gvyx_PanelIn_0" class="panelin" style="height:10px;width:7px;">
</div>
                                    
</div>
                                </td><td align="center" style="width:50px;">
                                    <a id="ContentPlaceHolder1_gvyx_hyPJ_0" title="5" class="hypj" href="pkechengpingjia.aspx?kechengid=1007571" tabindex="0"><img title="5" src="images/5.png" alt=""></a>
                                </td>
</tr><tr style="background-color:White;">
<td align="left" style="width:60px;">1007581</td><td align="left">
                                    <a id="ContentPlaceHolder1_gvyx_LinkButton1_1" href="javascript:__doPostBack('ctl00$ContentPlaceHolder1$gvyx$ctl03$LinkButton1','')" tabindex="0">依法治国与信息化:中国政务微信</a><img id="ContentPlaceHolder1_gvyx_kechengnew_1" src="images/zuixinziyuannew.gif">
                                </td><td align="left" style="width:100px;">国家行政学院</td><td align="left" style="width:50px;">郭凯天</td><td align="right" style="width:30px;">0</td><td align="right" style="width:30px;">109</td><td align="left" style="width:40px;">
                                    <div id="ContentPlaceHolder1_gvyx_PanelOut_1" class="panelout" style="height:10px;width:40px;">

                                        <div id="ContentPlaceHolder1_gvyx_PanelIn_1" class="panelin" style="height:10px;width:0px;">

      
</div>
                                    
</div>
                                </td><td align="center" style="width:50px;">
                                    <a id="ContentPlaceHolder1_gvyx_hyPJ_1" title="5" class="hypj" href="pkechengpingjia.aspx?kechengid=1007581" tabindex="0"><img title="5" src="images/5.png" alt=""></a>
                                </td>
</tr><tr style="background-color:#EFF3FB;">
<td align="left" style="width:60px;">1007561</td><td align="left">
                                    <a id="ContentPlaceHolder1_gvyx_LinkButton1_2" href="javascript:__doPostBack('ctl00$ContentPlaceHolder1$gvyx$ctl04$LinkButton1','')" tabindex="0">深入学习习总书记在十八届*纪委五次全会上的重要讲话</a><img id="ContentPlaceHolder1_gvyx_kechengnew_2" src="images/zuixinziyuannew.gif">
                                </td><td align="left" style="width:100px;">国家行政学院</td><td align="left" style="width:50px;">赵绪生</td><td align="right" style="width:30px;">0</td><td align="right" style="width:30px;">117</td><td align="left" style="width:40px;">
                                    <div id="ContentPlaceHolder1_gvyx_PanelOut_2" class="panelout" style="height:10px;width:40px;">

                                        <div id="ContentPlaceHolder1_gvyx_PanelIn_2" class="panelin" style="height:10px;width:0px;">

                                        
</div>
                                    
</div>
                                </td><td align="center" style="width:50px;">
                                    <a id="ContentPlaceHolder1_gvyx_hyPJ_2" title="5" class="hypj" href="pkechengpingjia.aspx?kechengid=1007561" tabindex="0"><img title="5" src="images/5.png" alt=""></a>
                                </td>
</tr><tr style="background-color:White;">
<td align="left" style="width:60px;">1007551</td><td align="left">
                                    <a id="ContentPlaceHolder1_gvyx_LinkButton1_3" href="javascript:__doPostBack('ctl00$ContentPlaceHolder1$gvyx$ctl05$LinkButton1','')" tabindex="0">高举全面从严治党的新旗帜,攻坚反腐2015年</a><img id="ContentPlaceHolder1_gvyx_kechengnew_3" src="images/zuixinziyuannew.gif">
                                </td><td align="left" style="width:100px;">国家行政学院</td><td align="left" style="width:50px;">张希贤</td><td align="right" style="width:30px;">0</td><td align="right" style="width:30px;">56</td><td align="left" style="width:40px;">
                                    <div id="ContentPlaceHolder1_gvyx_PanelOut_3" class="panelout" style="height:10px;width:40px;">

                                        <div id="ContentPlaceHolder1_gvyx_PanelIn_3" class="panelin" style="height:10px;width:0px;">

                                        
</div>
                                    
</div>
                                </td><td align="center" style="width:50px;">
                                    <a id="ContentPlaceHolder1_gvyx_hyPJ_3" title="4" class="hypj" href="pkechengpingjia.aspx?kechengid=1007551" tabindex="0"><img title="4" src="images/4.png" alt=""></a>
                                </td>
</tr><tr style="background-color:#EFF3FB;">
<td align="left" style="width:60px;">1007541</td><td align="left">
                                    <a id="ContentPlaceHolder1_gvyx_LinkButton1_4" href="javascript:__doPostBack('ctl00$ContentPlaceHolder1$gvyx$ctl06$LinkButton1','')" tabindex="0">强化责任追究</a><img id="ContentPlaceHolder1_gvyx_kechengnew_4" src="images/zuixinziyuannew.gif">
                                </td><td align="left" style="width:100px;">国家行政学院</td><td align="left" style="width:50px;">杨小军</td><td align="right" style="width:30px;">0</td><td align="right" style="width:30px;">47</td><td align="left" style="width:40px;">
                                    <div id="ContentPlaceHolder1_gvyx_PanelOut_4" class="panelout" style="height:10px;width:40px;">

                                        <div id="ContentPlaceHolder1_gvyx_PanelIn_4" class="panelin" style="height:10px;width:0px;">

                                        
</div>
                                    
</div>
                                </td><td align="center" style="width:50px;">
                                    <a id="ContentPlaceHolder1_gvyx_hyPJ_4" title="3" class="hypj" href="pkechengpingjia.aspx?kechengid=1007541" tabindex="0"><img title="3" src="images/3.png" alt=""></a>
                                </td>
</tr><tr style="background-color:White;">

                                    <a id="ContentPlaceHolder1_gvyx_LinkButton1_6" href="javascript:__doPostBack('ctl00$ContentPlaceHolder1$gvyx$ctl08$LinkButton1','')" tabindex="0">山西煤炭生产形势与任务</a><img id="ContentPlaceHolder1_gvyx_kechengnew_6" src="images/zuixinziyuannew.gif">
                                </td><td align="left" style="width:100px;">山西广播电视大学</td><td align="left" style="width:50px;">王建明</td><td align="right" style="width:30px;">0</td><td align="right" style="width:30px;">101</td><td align="left" style="width:40px;">
                                    <div id="ContentPlaceHolder1_gvyx_PanelOut_6" class="panelout" style="height:10px;width:40px;">

                                        <div id="ContentPlaceHolder1_gvyx_PanelIn_6" class="panelin" style="height:10px;width:0px;">

                
</fieldset>
</div>
            </div>
</body>
</html>

2 个解决方案

#1


我们这学习过程中还会弹出选择题的对话框,想编程自动学习比较困难.
我尝试了一下就放弃了,还不如花点时间人工操作.

#2


网上有学完后,自动选课的,是怎么实现的?

#1


我们这学习过程中还会弹出选择题的对话框,想编程自动学习比较困难.
我尝试了一下就放弃了,还不如花点时间人工操作.

#2


网上有学完后,自动选课的,是怎么实现的?