aardio中关闭网页弹窗
编辑时间:2021-01-19 作者:金满斗 浏览量:3555 来源:原创

aardio以前用来做模拟操作真的是顶瓜瓜。

不过作者好像有意在不提及这些,以前一些老的代码也慢慢少看到了。

前几天帮别人做个小东西,又遇到网页弹窗,记得是可以模拟点击关掉的,这里找出来记录下,省的时间长了忘记了。

wb.showMsg=function(text ,caption){
closeDlg_t = function(title) {
          import winex;
          var hwnd,hctr =   winex.waitActive(title, ,"#32770","Button");   
          winex.click(hctr); 
    }
    thread.create(closeDlg_t,caption/*传递参数给线程*/ )

    return true; 
}


来说两句吧