反馈bug 在哪里反馈

金_16104 2019-3-17 1217

弄好了所有代码 原代码总共85列   现在所有代码右边所有参数修改完都保存不了


最新回复 (7)
  • luo 2019-3-17
    2
    出现这种情况一般来说是源代码中有错误,请检查一下代码。如果方便,可以上传我们帮助定位
  • 金_16104 2019-3-18
    3
    luo 出现这种情况一般来说是源代码中有错误,请检查一下代码。如果方便,可以上传我们帮助定位
    上传到这里吗 可以的话我全部上传都可以哈
  • luo 2019-3-19
    4
    可以的
  • 金_16104 2019-3-19
    5
    luo 可以的
    Import mouse
    import WebBrowser
    import UiElement
    import Excel

    dim bRet = ""
    dim varRet = ""
    dim objRect = ""
    dim hWeb = ""
    dim objExcelWorkBook = ""
    dim iRet = ""
    dim sText = ""
    dim sRet = ""



    hWeb = WebBrowser.Create("chrome","about:blank",10000,{"bContinueOnError":false,"iDelayAfter":300,"iDelayBefore":300,"sBrowserPath":"C:\\Users\\Administrator\\AppData\\Local\\Google\\Chrome\\Application\\chrome.exe","bChromeUnsafe":false})
    iRet = WebBrowser.GoURL(hWeb,"http://shenzhen.dqccc.com/",true,[],30000,{"bContinueOnError":false,"iDelayAfter":300,"iDelayBefore":300})
    iRet = WebBrowser.GoURL(hWeb,"http://user.dqccc.com/",true,[],30000,{"bContinueOnError":false,"iDelayAfter":500,"iDelayBefore":500})
    iRet = WebBrowser.GoURL(hWeb,"http://user.dqccc.com/house/AreaList.aspx?ClassID=1&HouseType=100012&CityID=250",true,[],30000,{"bContinueOnError":false,"iDelayAfter":500,"iDelayBefore":500})
    iRet = WebBrowser.GoURL(hWeb,"http://user.dqccc.com/house/FocusList.aspx?ClassID=1&HouseType=100012&CityID=250&AreaID=1766",true,[],30000,{"bContinueOnError":false,"iDelayAfter":500,"iDelayBefore":500})
    iRet = WebBrowser.GoURL(hWeb,"http://user.dqccc.com/house/HouseHire.aspx?ClassID=1&HouseType=100012&CityID=250&AreaID=1766&FocusID=1694",true,[],30000,{"bContinueOnError":false,"iDelayAfter":300,"iDelayBefore":300})
    objExcelWorkBook = Excel.WorkBookOpen("D:\\网上兼职\\测试3.xls","","")
    sRet = Excel.SheetGetName(objExcelWorkBook,1)
    sText=Excel.CellGetText(objExcelWorkBook,1,18,1)
    #icon("@res:jct2tkrq-s6qp-cie7-uglp-3t2ndj6l0pg8.png")
    UiElement.SetValue({"wnd":[{"cls":"Chrome_WidgetWin_1","title":"*","app":"chrome"},{"cls":"Chrome_RenderWidgetHostHWND","title":"Chrome Legacy Window"}],"html":{"url":"http://user.dqccc.com/house/HouseHire.aspx?ClassID=1&HouseType=100012&CityID=250&AreaID=1766&FocusID=1694","title":"出租房","tagName":"INPUT","attrMap":{"tag":"INPUT","name":"Title"},"index":0}},sText,{"bContinueOnError":false,"iDelayAfter":300,"iDelayBefore":300})
    #icon("@res:lm4f42kk-f5oq-m04n-2r8p-sac1m1ojuai6.png")
    UiElement.SetValue({"wnd":[{"cls":"Chrome_WidgetWin_1","title":"*","app":"chrome"},{"cls":"Chrome_RenderWidgetHostHWND","title":"Chrome Legacy Window"}],"html":{"url":"http://user.dqccc.com/house/HouseHire.aspx?ClassID=1&HouseType=100012&CityID=250&AreaID=1766&FocusID=1694","title":"出租房","tagName":"INPUT","attrMap":{"tag":"INPUT","id":"Address"},"index":0}},"福田区石厦北二街新天世纪商务中心A座3807-09",{"bContinueOnError":false,"iDelayAfter":300,"iDelayBefore":300})
    #icon("@res:uvc5rh7h-g8r7-bsqj-vai0-bbofpa7udoh1.png")
    Mouse.Action({"wnd":[{"cls":"Chrome_WidgetWin_1","title":"*","app":"chrome"},{"cls":"Chrome_RenderWidgetHostHWND","title":"Chrome Legacy Window"}],"html":{"url":"http://user.dqccc.com/house/HouseHire.aspx?ClassID=1&HouseType=100012&CityID=250&AreaID=1766&FocusID=1694","title":"出租房","tagName":"A","attrMap":{"tag":"A","id":"apb"},"index":0}},"left","click",10000,{"bContinueOnError":false,"iDelayAfter":300,"iDelayBefore":200,"bSetForeground":true,"sCursorPosition":"Center","iCursorOffsetX":0,"iCursorOffsetY":0,"sKeyModifiers":[],"sSimulate":"uia"})
    #icon("@res:toq5pfcd-73vn-6j8b-di0h-ar31vpb7qtpq.png")
    Mouse.Action({"wnd":[{"cls":"Chrome_WidgetWin_1","title":"*","app":"chrome"},{"cls":"Chrome_RenderWidgetHostHWND","title":"Chrome Legacy Window"}],"html":{"url":"http://user.dqccc.com/house/HouseHire.aspx?ClassID=1&HouseType=100012&CityID=250&AreaID=1766&FocusID=1694","title":"出租房","tagName":"DIV","attrMap":{"tag":"DIV","parentid":"MyMap","isleaf":"1"},"index":1}},"left","click",10000,{"bContinueOnError":false,"iDelayAfter":300,"iDelayBefore":300,"bSetForeground":true,"sCursorPosition":"Center","iCursorOffsetX":107,"iCursorOffsetY":178,"sKeyModifiers":[],"sSimulate":"uia"})
    #icon("@res:2271rboa-r4lt-9cuj-ghva-reeg0bkj5oid.png")
    Mouse.Action({"wnd":[{"cls":"Chrome_WidgetWin_1","title":"*","app":"chrome"},{"cls":"Chrome_RenderWidgetHostHWND","title":"Chrome Legacy Window"}],"html":{"url":"http://user.dqccc.com/house/HouseHire.aspx?ClassID=1&HouseType=100012&CityID=250&AreaID=1766&FocusID=1694","title":"出租房","tagName":"INPUT","attrMap":{"tag":"INPUT","type":"button"},"index":0}},"left","click",10000,{"bContinueOnError":false,"iDelayAfter":300,"iDelayBefore":300,"bSetForeground":true,"sCursorPosition":"Center","iCursorOffsetX":0,"iCursorOffsetY":0,"sKeyModifiers":[],"sSimulate":"simulate"})
    #icon("@res:j15gql5g-15s3-3md2-au6a-sth1v863bl8t.png")
    UiElement.SetValue({"wnd":[{"cls":"Chrome_WidgetWin_1","title":"*","app":"chrome"},{"cls":"Chrome_RenderWidgetHostHWND","title":"Chrome Legacy Window"}],"html":{"url":"http://user.dqccc.com/house/HouseHire.aspx?ClassID=1&HouseType=100012&CityID=250&AreaID=1766&FocusID=1694","title":"出租房","tagName":"INPUT","attrMap":{"tag":"INPUT","name":"Floor"},"index":0}},"38",{"bContinueOnError":false,"iDelayAfter":300,"iDelayBefore":300})
    #icon("@res:msbi2pvb-c6kl-n24l-alrn-h844ou61ui6t.png")
    UiElement.SetValue({"wnd":[{"cls":"Chrome_WidgetWin_1","title":"*","app":"chrome"},{"cls":"Chrome_RenderWidgetHostHWND","title":"Chrome Legacy Window"}],"html":{"url":"http://user.dqccc.com/house/HouseHire.aspx?ClassID=1&HouseType=100012&CityID=250&AreaID=1766&FocusID=1694","title":"出租房","tagName":"INPUT","attrMap":{"tag":"INPUT","name":"FloorTotal"},"index":0}},"45",{"bContinueOnError":false,"iDelayAfter":300,"iDelayBefore":300})
    #icon("@res:o1b7mdnf-ppba-7lff-k27d-fe3fe85i0lg2.png")
    UiElement.SetSelect({"wnd":[{"cls":"Chrome_WidgetWin_1","title":"*","app":"chrome"},{"cls":"Chrome_RenderWidgetHostHWND","title":"Chrome Legacy Window"}],"html":{"url":"http://user.dqccc.com/house/HouseHire.aspx?ClassID=1&HouseType=100012&CityID=250&AreaID=1766&FocusID=1694","title":"出租房","tagName":"SELECT","attrMap":{"tag":"SELECT","id":"RentMinDays"},"index":0}},"一天","text",{"bContinueOnError":false,"iDelayAfter":300,"iDelayBefore":300})
    Mouse.Wheel(-8, [])
    #icon("@res:9o3uns03-8tcv-igpe-0e2s-86lv55vef23b.png")
    Mouse.Action({"wnd":[{"cls":"Chrome_WidgetWin_1","title":"*","app":"chrome"},{"cls":"Chrome_RenderWidgetHostHWND","title":"Chrome Legacy Window"}],"html":{"url":"http://user.dqccc.com/house/HouseHire.aspx?ClassID=1&HouseType=100012&CityID=250&AreaID=1766&FocusID=1694","title":"出租房","tagName":"IMG","attrMap":{"tag":"IMG","id":"vcodeimg"},"index":0}},"left","click",10000,{"bContinueOnError":false,"iDelayAfter":300,"iDelayBefore":300,"bSetForeground":true,"sCursorPosition":"Center","iCursorOffsetX":0,"iCursorOffsetY":0,"sKeyModifiers":[],"sSimulate":"simulate"})
    #icon("@res:4rs3g0q5-up94-goji-65n0-5ql7oc02pcsf.png")
    UiElement.SetValue({"wnd":[{"cls":"Chrome_WidgetWin_1","title":"*","app":"chrome"},{"cls":"Chrome_RenderWidgetHostHWND","title":"Chrome Legacy Window"}],"html":{"url":"http://user.dqccc.com/house/HouseHire.aspx?ClassID=1&HouseType=100012&CityID=250&AreaID=1766&FocusID=1694","title":"出租房","tagName":"INPUT","attrMap":{"tag":"INPUT","id":"Price"},"index":0}},"3980",{"bContinueOnError":false,"iDelayAfter":300,"iDelayBefore":300})
    #icon("@res:70ts9e76-bi1r-j8it-j9le-tq3ce6319tjs.png")
    UiElement.SetValue({"wnd":[{"cls":"Chrome_WidgetWin_1","title":"*","app":"chrome"},{"cls":"Chrome_RenderWidgetHostHWND","title":"Chrome Legacy Window"}],"html":{"url":"http://user.dqccc.com/house/HouseHire.aspx?ClassID=1&HouseType=100012&CityID=250&AreaID=1766&FocusID=1694","title":"出租房","tagName":"INPUT","attrMap":{"tag":"INPUT","name":"BuildArea"},"index":0}},"20",{"bContinueOnError":false,"iDelayAfter":300,"iDelayBefore":300})
    sText=Excel.CellGetText(objExcelWorkBook,1,18,2)
    #icon("@res:cvolj0dn-c8dn-lfnf-m4cn-k8lt5tt16b7b.png")
    UiElement.SetValue({"wnd":[{"cls":"Chrome_WidgetWin_1","title":"*","app":"chrome"},{"cls":"Chrome_RenderWidgetHostHWND","title":"Chrome Legacy Window"}],"html":{"url":"http://user.dqccc.com/house/HouseHire.aspx?ClassID=1&HouseType=100012&CityID=250&AreaID=1766&FocusID=1694","title":"出租房","tagName":"TEXTAREA","attrMap":{"tag":"TEXTAREA"},"index":0}},sText,{"bContinueOnError":false,"iDelayAfter":300,"iDelayBefore":300})
    #icon("@res:idfsu5kb-rker-oq9c-0m9f-k7n0j0p1hqk5.png")
    UiElement.SetCheck({"wnd":[{"cls":"Chrome_WidgetWin_1","title":"*","app":"chrome"},{"cls":"Chrome_RenderWidgetHostHWND","title":"Chrome Legacy Window"}],"html":{"url":"http://user.dqccc.com/house/HouseHire.aspx?ClassID=1&HouseType=100012&CityID=250&AreaID=1766&FocusID=1694","title":"出租房","tagName":"INPUT","attrMap":{"tag":"INPUT","name":"IsAgency"},"index":2}},true,{"bContinueOnError":false,"iDelayAfter":300,"iDelayBefore":300})
    #icon("@res:tk5vmq0p-oh1i-tqi7-cad9-ektbo1ol3s67.png")
    UiElement.SetSelect({"wnd":[{"cls":"Chrome_WidgetWin_1","title":"*","app":"chrome"},{"cls":"Chrome_RenderWidgetHostHWND","title":"Chrome Legacy Window"}],"html":{"url":"http://user.dqccc.com/house/HouseHire.aspx?ClassID=1&HouseType=100012&CityID=250&AreaID=1766&FocusID=1694","title":"出租房","tagName":"SELECT","attrMap":{"tag":"SELECT","name":"ValidateDate"},"index":0}},"60天","text",{"bContinueOnError":false,"iDelayAfter":300,"iDelayBefore":300})
    import anticode
    Import domtools
    Import Http
    Import Time
    Import sys

    Excel.Close(objExcelWorkBook,true)



    dim imgpath = "d:\\demo\\" & Time.Timer() & ".bmp"

    #icon("@res:5n1ejppf-n32p-qo7j-rs23-kh4ba2gqd9q3.png")
    UiElement.ScreenShot({"wnd":[{"cls":"Chrome_WidgetWin_1","title":"*","app":"chrome"},{"cls":"Chrome_RenderWidgetHostHWND","title":"Chrome Legacy Window"}],"html":{"url":"http://user.dqccc.com/house/HouseHire.aspx?ClassID=1&HouseType=100012&CityID=250&AreaID=1766&FocusID=1694","title":"出租房","tagName":"IMG","attrMap":{"tag":"IMG","id":"vcodeimg"},"index":0}},imgpath,"content",{"bContinueOnError":false,"iDelayAfter":300,"iDelayBefore":300})

    anticode.loadCds('D:/demo/soufang.cds','12345606')

    dim code = anticode.getCodeFormFile(imgpath,3)
    TracePrint(code)
    Dim value = domtools.pyeval(code)
    TracePrint(value)

    #icon("@res:0pbh0khe-n0ug-mh59-v7r4-rvu0hnan3bvn.png")
    UiElement.SetValue({"wnd":[{"cls":"Chrome_WidgetWin_1","title":"*","app":"chrome"},{"cls":"Chrome_RenderWidgetHostHWND","title":"Chrome Legacy Window"}],"html":{"url":"http://user.dqccc.com/house/HouseHire.aspx?ClassID=1&HouseType=100012&CityID=250&AreaID=1766&FocusID=1694","title":"出租房","tagName":"INPUT","attrMap":{"tag":"INPUT","name":"vcode"},"index":0}},value,{"bContinueOnError":false,"iDelayAfter":300,"iDelayBefore":300})
    #icon("@res:a1dgnga7-ajvh-fa2b-vqfp-5tr49brgtpl1.png")
    Mouse.Action({"wnd":[{"cls":"Chrome_WidgetWin_1","title":"*","app":"chrome"},{"cls":"Chrome_RenderWidgetHostHWND","title":"Chrome Legacy Window"}],"html":{"url":"http://user.dqccc.com/house/HouseHire.aspx?ClassID=1&HouseType=100012&CityID=250&AreaID=1766&FocusID=1694","title":"出租房","tagName":"INPUT","attrMap":{"tag":"INPUT","id":"FileUpload1"},"index":0}},"left","click",10000,{"bContinueOnError":false,"iDelayAfter":300,"iDelayBefore":300,"bSetForeground":true,"sCursorPosition":"Center","iCursorOffsetX":0,"iCursorOffsetY":0,"sKeyModifiers":[],"sSimulate":"simulate"})
    #icon("@res:3anheemp-br48-f4n9-ofte-k3djb1sju9vg.png")
    Mouse.Action({"wnd":[{"app":"chrome","cls":"Chrome_WidgetWin_1","title":"出租房 - Google Chrome"},{"cls":"#32770","title":"打开"},{"cls":"DUIViewWndClassName"},{"cls":"SHELLDLL_DefView","title":"ShellView"},{"cls":"DirectUIHWND"}],"ctrl":[{"cid":50007,"aid":"2","name":"3.jpg"}]},"left","click",10000,{"bContinueOnError":false,"iDelayAfter":300,"iDelayBefore":200,"bSetForeground":true,"sCursorPosition":"Center","iCursorOffsetX":0,"iCursorOffsetY":0,"sKeyModifiers":[],"sSimulate":"simulate"})
    #icon("@res:fe6ghkou-4bcn-t0pa-qf71-ad01phepai19.png")
    Mouse.Action({"wnd":[{"app":"chrome","cls":"Chrome_WidgetWin_1","title":"出租房 - Google Chrome"},{"cls":"#32770","title":"打开"},{"cls":"Button","title":"打开(&O)"}]},"left","click",10000,{"bContinueOnError":false,"iDelayAfter":300,"iDelayBefore":300,"bSetForeground":true,"sCursorPosition":"Center","iCursorOffsetX":0,"iCursorOffsetY":0,"sKeyModifiers":[],"sSimulate":"simulate"})
    #icon("@res:a60hnjbf-5im9-2gim-kj7p-5t82kr7307is.png")
    Mouse.Action({"wnd":[{"cls":"Chrome_WidgetWin_1","title":"*","app":"chrome"},{"cls":"Chrome_RenderWidgetHostHWND","title":"Chrome Legacy Window"}],"html":{"url":"http://user.dqccc.com/house/HouseHire.aspx?ClassID=1&HouseType=100012&CityID=250&AreaID=1766&FocusID=1694","title":"出租房","tagName":"INPUT","attrMap":{"tag":"INPUT","id":"btnPicAdd"},"index":0}},"left","click",10000,{"bContinueOnError":false,"iDelayAfter":400,"iDelayBefore":400,"bSetForeground":true,"sCursorPosition":"Center","iCursorOffsetX":0,"iCursorOffsetY":0,"sKeyModifiers":[],"sSimulate":"simulate"})
    #icon("@res:cp08r23k-u4b6-5rfq-61nb-2jm563o0adgk.png")
    Mouse.Action({"wnd":[{"app":"chrome","cls":"Chrome_WidgetWin_1","title":"出租房 - Google Chrome"}],"ctrl":[{"role":"ROLE_SYSTEM_PANE","name":"出租房 - Google Chrome"},{"role":"ROLE_SYSTEM_DIALOG","name":"user.dqccc.com 显示"},{"role":"ROLE_SYSTEM_PANE"}]},"left","click",10000,{"bContinueOnError":false,"iDelayAfter":300,"iDelayBefore":300,"bSetForeground":true,"sCursorPosition":"TopLeft","iCursorOffsetX":401,"iCursorOffsetY":101,"sKeyModifiers":[],"sSimulate":"simulate"})
    Mouse.Wheel(-8, [])
    #icon("@res:igi1nuko-01g9-immj-umuq-c0nn44erb7ab.png")
    UiElement.SetValue({"wnd":[{"cls":"Chrome_WidgetWin_1","title":"*","app":"chrome"},{"cls":"Chrome_RenderWidgetHostHWND","title":"Chrome Legacy Window"}],"html":{"url":"http://user.dqccc.com/house/HouseHire.aspx?ClassID=1&HouseType=100012&CityID=250&AreaID=1766&FocusID=1694","title":"出租房","tagName":"INPUT","attrMap":{"tag":"INPUT","name":"Linkman"},"index":0}},"夏小姐",{"bContinueOnError":false,"iDelayAfter":300,"iDelayBefore":200})
    #icon("@res:pats73km-v0rg-p6n2-pa18-1srlgv5l6on5.png")
    Mouse.Action({"wnd":[{"cls":"Chrome_WidgetWin_1","title":"*","app":"chrome"},{"cls":"Chrome_RenderWidgetHostHWND","title":"Chrome Legacy Window"}],"html":{"url":"http://user.dqccc.com/House/HouseHire.aspx?ClassID=1&HouseType=100012&CityID=250&AreaID=1766&FocusID=1694","title":"出租房","tagName":"TD","attrMap":{"tag":"TD","parentid":"form1","isleaf":"1","tableRow":"1","tableCol":"2"},"index":2}},"left","click",10000,{"bContinueOnError":false,"iDelayAfter":500,"iDelayBefore":500,"bSetForeground":true,"sCursorPosition":"Center","iCursorOffsetX":0,"iCursorOffsetY":0,"sKeyModifiers":[],"sSimulate":"simulate"})
    #icon("@res:ukodb07j-c6c8-c310-goc8-15rglab3cact.png")
    UiElement.SetCheck({"wnd":[{"cls":"Chrome_WidgetWin_1","title":"*","app":"chrome"},{"cls":"Chrome_RenderWidgetHostHWND","title":"Chrome Legacy Window"}],"html":{"url":"http://user.dqccc.com/house/HouseHire.aspx?ClassID=1&HouseType=100012&CityID=250&AreaID=1766&FocusID=1694","title":"出租房","tagName":"INPUT","attrMap":{"tag":"INPUT","name":"Sex"},"index":2}},true,{"bContinueOnError":false,"iDelayAfter":500,"iDelayBefore":500})




  • 金_16104 2019-3-19
    6
    还有现在所有 鼠标-鼠标动作 这个功能 在我这个代码里面 它一直不点击  只把鼠标移动我想要的位置 却 不点击
  • 九木成林 2019-3-20
    7
    1 .import都丢到文件头去
    2. 变量dim之后再用
  • 金_16104 2019-3-20
    8
    九木成林 1 .import都丢到文件头去 2. 变量dim之后再用
    我不是程序员 不是很懂哈 看来要其他人帮我弄下了
返回
发新帖