Script2EXE Home How to Use Interface Buy Support Site Home

Script2EXE --- Demonstration - How to Make an ActiveX


Source Codes

function Helo()
{
    var dt=new Date;
    var hs=dt.getHours();
    if(hs>=5 && hs<=12)
        return("Good Morning!");
    if(hs>12 && hs<=17)
        return("Good Afternoon!");
    if(hs<=20.00)
        return("Good Evening!");
    return("Im Sleeping...");
}

function about()
{
return("ActiveX DLL created with Script2EXE");
}
Steps
Test It!

Save the javascript below and execute it with CScript.exe:

var obj=new ActiveXObject("SHD.Test");
WScript.echo(obj.Helo());