w

wanglong_595138 2021-12-8 549



Dim arrayData = ""
Dim hWeb = ""
hWeb = WebBrowser.Create("chrome","https://forum.uibot.com.cn/",30000,{"bContinueOnError":False,"iDelayAfter":300,"iDelayBefore":200,"sBrowserPath":"","sStartArgs":""})
#icon("@res:5uje581u-6ip8-bf4a-8ft1-edcolvp3i153.png")
Mouse.Action({"wnd":[{"cls":"Chrome_WidgetWin_1","title":"*","app":"chrome"},{"cls":"Chrome_RenderWidgetHostHWND","title":"Chrome Legacy Window"}],"html":[{"tag":"A","parentid":"nav","aaname":" 登录"}]},"left","click",10000,{"bContinueOnError":False,"iDelayAfter":300,"iDelayBefore":200,"bSetForeground":True,"sCursorPosition":"Center","iCursorOffsetX":0,"iCursorOffsetY":0,"sKeyModifiers":[],"sSimulate":"simulate","bMoveSmoothly":False})
#icon("@res:achn25m8-i2u6-0cro-asit-rn8r21457h4c.png")
Keyboard.InputText({"wnd":[{"cls":"Chrome_WidgetWin_1","title":"*","app":"chrome"},{"cls":"Chrome_RenderWidgetHostHWND","title":"Chrome Legacy Window"}],"html":[{"tag":"INPUT","id":"normal_form_userName"}]},"w1761381912@126.com",True,20,10000,{"bContinueOnError":False,"iDelayAfter":300,"iDelayBefore":500,"bSetForeground":True,"sSimulate":"message","bValidate":False,"bClickBeforeInput":False})
#icon("@res:scg97ak0-tr19-m2ra-o43o-jb6urasp4prb.png")
Keyboard.InputPwd({"wnd":[{"cls":"Chrome_WidgetWin_1","title":"*","app":"chrome"},{"cls":"Chrome_RenderWidgetHostHWND","title":"Chrome Legacy Window"}],"html":[{"tag":"INPUT","id":"normal_form_password"}]},"Tpy04gb+3STJMOOoZugxpg==",True,20,10000,{"bContinueOnError":False,"iDelayAfter":300,"iDelayBefore":500,"bSetForeground":True,"sSimulate":"message","bClickBeforeInput":False})
#icon("@res:of1f1egl-g1fl-rq02-g58j-m5iaui0nol2d.png")
Mouse.Action({"wnd":[{"cls":"Chrome_WidgetWin_1","title":"*","app":"chrome"},{"cls":"Chrome_RenderWidgetHostHWND","title":"Chrome Legacy Window"}],"html":[{"tag":"BUTTON"}]},"left","click",10000,{"bContinueOnError":False,"iDelayAfter":300,"iDelayBefore":200,"bSetForeground":True,"sCursorPosition":"Center","iCursorOffsetX":0,"iCursorOffsetY":0,"sKeyModifiers":[],"sSimulate":"simulate","bMoveSmoothly":False})
Delay(1000)
arrayData = UiElement.DataScrap({"wnd":[{"cls":"Chrome_WidgetWin_1","title":"*","app":"chrome"},{"cls":"Chrome_RenderWidgetHostHWND","title":"Chrome Legacy Window"}],"html":[{"tag":"MAIN"}]},{"ExtractTable":0,"Columns":[{"selecors":[{"tag":"div","index":0,"className":"container","value":"div.container","prefix":""},{"tag":"div","index":0,"className":"row","value":"div.row","prefix":">"},{"tag":"div","index":0,"className":"col-lg-9 main","value":"div.col-lg-9.main","prefix":">"},{"tag":"div","index":0,"className":"card card-threadlist","value":"div.card.card-threadlist","prefix":">"},{"tag":"div","index":0,"className":"card-body","value":"div.card-body","prefix":">"},{"tag":"ul","index":0,"className":"list-unstyled threadlist mb-0","value":"ul.list-unstyled.threadlist.mb-0","prefix":">"},{"tag":"li","value":"li","index":0,"prefix":">"},{"tag":"div","index":0,"className":"media-body","value":"div.media-body","prefix":">"},{"tag":"div","index":0,"className":"subject break-all","value":"div.subject.break-all","prefix":">"},{"tag":"a","index":0,"className":"","value":"a","prefix":">"}],"props":["text","url"]},{"selecors":[{"tag":"div","index":0,"className":"container","value":"div.container","prefix":""},{"tag":"div","index":0,"className":"row","value":"div.row","prefix":">"},{"tag":"div","index":0,"className":"col-lg-9 main","value":"div.col-lg-9.main","prefix":">"},{"tag":"div","index":0,"className":"card card-threadlist","value":"div.card.card-threadlist","prefix":">"},{"tag":"div","index":0,"className":"card-body","value":"div.card-body","prefix":">"},{"tag":"ul","index":0,"className":"list-unstyled threadlist mb-0","value":"ul.list-unstyled.threadlist.mb-0","prefix":">"},{"tag":"li","value":"li","index":0,"prefix":">"},{"tag":"div","index":0,"className":"media-body","value":"div.media-body","prefix":">"},{"tag":"div","index":0,"className":"d-flex justify-content-between small mt-1","value":"div.d-flex.justify-content-between.small.mt-1","prefix":">"},{"tag":"div","index":1,"className":"","value":"div:nth-child(1)","prefix":">"},{"tag":"span","index":0,"className":"username text-grey mr-1  hidden-sm","value":"span.username.text-grey.mr-1.hidden-sm","prefix":">"}],"props":["text"]}]},{"objNextLinkElement":{"wnd":[{"cls":"Chrome_WidgetWin_1","title":"*","app":"chrome"},{"cls":"Chrome_RenderWidgetHostHWND","title":"Chrome Legacy Window"}],"html":[{"tag":"A","parentid":"body","aaname":"▶"}]},"iMaxNumberOfPage":2,"iMaxNumberOfResult":-1,"iDelayBetweenMS":1000,"bContinueOnError":False})
TracePrint(arrayData)









Dim arrayData = ""
arrayData = self.input
objExcelWorkBook = Excel.OpenExcel('''C:\Users\user6\Desktop\222.xls''',True,"Excel","","")
Excel.WriteRange(objExcelWorkBook,"Sheet1","A1",arrayData,False)
Excel.CloseExcel(objExcelWorkBook,True)


最新回复 (2)
返回
发新帖