获取未指定运行脚本时出错 [英] Getting Unspecified Error when running a script

查看:115
本文介绍了获取未指定运行脚本时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在网上发现了一个在IE标签中打开网址的脚本。这个例子工作得很好。

I found a script online that opens URLs in IE tabs. The example worked perfectly.

我用我的工作URL替换了示例URL,它工作正常,直到我输入6个URL。

I replaced the example URLs with my work URLS and it worked fine until I put in 6 URLs.

Windows脚本宿主

Windows Script Host

脚本:C:\ Users \ Mike \Desktop \URL.js

Script: C:\Users\Mike\Desktop\URL.js

第25行

字符9

错误:未指定错误

代码:80004005

Code: 80004005

来源:(null)

有人可以帮我纠正这段代码吗?我需要它在星期一之前工作

Can someone help me with correcting this code? I need it for work by Monday

谢谢

迈克

var navOpenInNewWindow = 0x1;

var navOpenInNewWindow = 0x1;

var navOpenInNewTab = 0x800;

var navOpenInNewTab = 0x800;

var navOpenInBackgroundTab = 0x1000;

var navOpenInBackgroundTab = 0x1000;

 

var intLoop = 0;

var intLoop = 0;

var intArrUBound = 0;

var intArrUBound = 0;

var navFlags = navOpenInBackgroundTab;

var navFlags = navOpenInBackgroundTab;

var arrstrUrl = new Array(5);

var arrstrUrl = new Array(5);

var objIE;

var objIE;

 

    intArrUBound = arrstrUrl.length;

    intArrUBound = arrstrUrl.length;

 

    arrstrUrl [0] =" https://collaborate.wellpoint.com/sites/retentionresource/sitepages/home-reorg.aspx" ;;

    arrstrUrl[0] = "https://collaborate.wellpoint.com/sites/retentionresource/sitepages/home-reorg.aspx";

    arrstrUrl [1] =" https://callcare.wellpoint.com/ccb-wgs/login.asp" ;;

    arrstrUrl[1] = "https://callcare.wellpoint.com/ccb-wgs/login.asp";

    arrstrUrl [2] =" https://brokerportal.anthem.com/ehb/web/bkr/acc/login.htm?wlp-brand = anthem" ;;

    arrstrUrl[2] = "https://brokerportal.anthem.com/ehb/web/bkr/acc/login.htm?wlp-brand=anthem";

    ;  arrstrUrl [3] =" https://paybill.princetonecom.com/cgi/wellpointEC-bin/vortex.cgi" ;;

    arrstrUrl[3] = "https://paybill.princetonecom.com/cgi/wellpointEC-bin/vortex.cgi";

    arrstrUrl [4] =" http://hipaaapps.corp.anthem.com/airscorp/aspx/searchindividual.aspx" ;;

    arrstrUrl[4] = "http://hipaaapps.corp.anthem.com/airscorp/aspx/searchindividual.aspx";

    arrstrUrl [5] =" https://portal.056d.dedicated.lync.com/wellpoint/meet/jennifer.hoover/L1P87C47" ;;

    arrstrUrl[5] = "https://portal.056d.dedicated.lync.com/wellpoint/meet/jennifer.hoover/L1P87C47";

 

    objIE = new ActiveXObject(" InternetExplorer.Application");

    objIE = new ActiveXObject("InternetExplorer.Application");

    objIE.Navigate2(arrstrUrl [0]);

    objIE.Navigate2(arrstrUrl[0]);

 

    for(intLoop = 1; intLoop< = intArrUBound; intLoop ++){

    for (intLoop=1;intLoop<=intArrUBound;intLoop++) {

 

       &NBSP; objIE.Navigate2(arrstrUrl [intLoop],navFlags);

        objIE.Navigate2(arrstrUrl[intLoop], navFlags);

 

    }

    }

 

    objIE.Visible = true;

    objIE.Visible = true;

    objIE = null;

    objIE = null;

推荐答案

抱歉,我们不修复在。互联网&NBSP;如果您有关于脚本的特定问题,我们可以尝试回答这个问题。

Sorry but we don't fix scripts found on the Internet.  If you have a specific question about scripting we can try to answer that.

您还可以花时间学习JavaScript并尝试弄清楚您为何破坏了脚本。也许您的网址太多。 你似乎有一个太短的数组。

You can also spend time learning JavaScript and try to figure out why you have broken the scrip. Perhaps you have too many URLs.  You seem to have an array that is too short.


这篇关于获取未指定运行脚本时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆