Chinaunix首页 | 论坛 | 博客
  • 博客访问: 818700
  • 博文数量: 756
  • 博客积分: 40000
  • 博客等级: 大将
  • 技术积分: 4980
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-13 14:40
文章分类

全部博文(756)

文章存档

2011年(1)

2008年(755)

我的朋友

分类:

2008-10-13 16:10:28

// This is a part of the DemoApp control
//
 Copyright (C) 2007 BeiJing XXX Limited Corporation
//
 All rights reserved.
//
//
 This source code is only intended as a demo of using DemoApp
//
 control in JScript. It works in WScript/CScript script host
//
 environment only. You can write you own code like this so
//
 that they can work in the Internet Explorer.
//

main();
function main()
{
   
try{
         
var DemoApp, bOK, rnd;
         DemoApp 
= new ActiveXObject("DemoApp.DemoCtrl");
         bOK 
= DemoApp.isInstalled();
         
if (bOK){
        WScript.echo(
"已经安装!");

            ver 
= DemoApp.getVersion();
            vmx 
= (ver >> 8& 0xff;
            vmn 
= ver & 0xff;
            WScript.echo(
"Version:"+vmx.toString()+"."+vmn.toString());
         
            WScript.echo(
"""+DemoApp.getString(050)+""");

            
var name = DemoApp.getName();
            WScript.echo(
"""+name+""");

            
var pass = DemoApp.getPassword();
            WScript.echo(
"""+pass+""");

            
var seek = DemoApp.getSeek();
            WScript.echo(
"""+seek+""");      

      }
   }
catch(e){
      WScript.echo(e);
  }
}

--------------------next---------------------

阅读(439) | 评论(0) | 转发(0) |
0

上一篇:《GEB》读后感

下一篇:some codes

给主人留下些什么吧!~~