做的一个小例子,查看多玩的动态图片
import win.ui; import web.form import string import inet.http import fsys http = inet.http() /*DSG{{*/ var winform = ..win.form(text="AAuto Form";right=599;bottom=399) winform.add( button={cls="button";text="GO!";left=7;top=309;right=80;bottom=343;font=LOGFONT( weight=700 );z=1}; button2={cls="button";text="前一个";left=91;top=9;right=140;bottom=48;z=6}; button3={cls="button";text="后一个";left=541;top=7;right=594;bottom=47;z=5}; edit={cls="edit";left=90;top=50;right=596;bottom=334;edge=1;multiline=1;z=2}; edit2={cls="edit";left=33;top=362;right=594;bottom=388;edge=1;multiline=1;z=3}; edit3={cls="edit";left=7;top=7;right=86;bottom=286;edge=1;multiline=1;z=4}; static={cls="static";left=216;top=12;right=446;bottom=44;transparent=1;z=7} ) /*}}*/ var wb = web.form( winform.edit) winform.show() i=1 //pathtext = "D:\微信库\title.txt" function go(){ url = website + string.format("%s",i ) wb.go(url) wb.waitEle("show-img") var ele = wb.queryEles(tagName = "img";href = "@.gif") str = ele.href wb.go(ele.href) var title = ele.getAttribute("alt") winform.edit3.appendText(title,'\r\n') winform.static.text = title } /* url = website + string.format("%s",i ) //winform.edit2.text = url wb.go(url) wb.waitEle("show-img") var ele = wb.queryEles(tagName = "img";href = "@.gif") //winform.msgbox(ele.innerText)s try{ //str = http.down(ele.href) winform.button3.oncommand = function(id,event){ i+=1 go() } winform.button2.oncommand = function(id,event){ i=i-1 go() } winform.button.oncommand = function(id,event){ website = 'http://tu.duowan.com/gallery/107530.html#p' url = website + string.format("%s",i ) wb.noScriptErr=true; } win.loopMessage()
–积跬步,至千里!–
今天的文章多玩动态图查看客户端分享到此就结束了,感谢您的阅读,如果确实帮到您,您可以动动手指转发给其他人。
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
如需转载请保留出处:https://bianchenghao.cn/55893.html