对象没找对吧?
怎么不把代码贴出来让大家帮你看呢?

解决方案 »

  1.   

    我原来就只有一个js文件,运行的好好的。里面是这样写的:
    var shell = WScript.CreateObject("wscript.Shell");
    但我加了一个html文件就不对了。
    html文件是这样的:
    <html>
    <head>
    <meta name="GENERATOR" content="Microsoft FrontPage 6.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>Testing Script</title>
    <script language="JavaScript1.2" src="../script/RUI_c_test.js"></script>
    <script id=clientEventHandlersJS language=javascript>
    <!--
    function RunTestScript()
    {
    var oNewEvent = document.createEventObject;
    var whichCode = oNewEvent.keyCode;
    alert("Activate the RUI Client Window, Key will be sent to that window!."); alert("Action!");
    while (whichCode != 0x1d)
    {
    TestScript();
    }

    alert( "End!");
    Quit();
    }//
    //-->
    </script></head>
      

  2.   

    我不知道贴这些代码,清不清楚。全贴就太多了。
    谢谢。