Question
April 21, 2008 at 05:25 AM
collkashif777

ActiveXObject(“WScript.Shell”)

by collkashif777 . Updated 18 years, 3 months ago

i am using windows-XP Service Pak1 and IE6 and IE7, using this function

function setWindow()
{
try
{
var x;
x= new ActiveXObject(“WScript.Shell”);
x.SendKeys(“% “);
x.SendKeys(“x”)
}
catch(err)
{
document.write(err.description);
}
}

show error
“Automation server can’t create object”

if using windows-XP Service Pak2 and IE6-IE7 and code run,
who can run this code with out change service pak

This discussion is locked

All Comments