web.form中弹窗,自动点确定

admin2021-05-08  399

wb.showMsg=function(text/*信息*/,caption/*标题*/){
    closeDlg_t = function(title) {
        import winex;
        var hwnd, hctr =   winex.wait(title,"确定","#32770","Button");
        if(hctr){
            try{
                win.delay(1000);
            	winex.click(hctr);
			}
        }
    }
    thread.create(closeDlg_t, caption/*传递参数给线程*/ )
    return true; /*返回false则不显示对话框*/
}	
转载请注明原文地址: http://aardio.net/read-177.html
最新回复(0)