One question for Marc or other who know..
I have windows xp professional(version 2002 , service pack 2) on my work, and i'm set to listen Foobar Youtube Radio , everything works, but can't open input box from WSH, here's code i'm use:
//Input Box
this.InputBox = function(prompt, title, value) {
prompt = prompt.replace(/"/g, '" + Chr(34) + "').replace(/\n/g, '" + Chr(13) + "');
title = title.replace(/"/g, '" + Chr(34) + "');
value = value.replace(/"/g, '" + Chr(34) + "');
var temp_value = this.vb.eval('InputBox' + '("' + prompt + '", "' + title + '", "' + value + '")');
if (typeof temp_value == "undefined") return value;
if (temp_value.length == 254) this.MsgBox("Your entry was too long and will be truncated.\n\nSee the WSH panel mod script discussion thread on hydrogenaudio forums for help.", 0, "Youtube Radio");
return temp_value.trim();
}
this.vb = new ActiveXObject("ScriptControl");
this.vb.Language = "VBScript";
this.artist = "%artist%";
I have error on this:
this.vb = new ActiveXObject("ScriptControl");
this.vb.Language = "VBScript";
this.artist = "%artist%";
Console:
Scripting Engine Initialization Failed (Youtube Radio by Mire777, CODE: 0x80020101)
Check the console for more information (Always caused by unexcepted script error).
Error: WSH Panel Mod (Youtube Radio by Mire777): Microsoft JScript runtime error:
Automation server can't create object
File: <main>
Ln: 395, Col: 2
<source text only available at compile time>
What is the problem?
Did i have to install some support for windows xp , is this possible?