almost done the Youtube viewer.. but need help on this part.
i want to open a program ( IE ) which is opening a webpage on the script files path but it keeps showing an error that it cant find...
my Code:
code:
var Browser = "C:\Program Files\Internet Explorer\iexplore.exe";
function viewVideo(){
var Browser = TubeOption.RegRead(TubeBrowser); (dont mind that)
var Opener = new ActiveXObject("Shell.Application");
var fso = new ActiveXObject("Scripting.FileSystemObject");
var file = fso.CreateTextFile(MsgPlus.ScriptFilesPath + "\\Viewer.html", true);
var code = "<HTML>\n";
code += "<TITLE>YouTube Video: "+video+"</TITLE>\n";
code += "<BODY style='background:black'>\n";
code += "<Center><object width=\"425\" height=\"350\"><param name=\"movie\" value=\"http://www.youtube.com/v/"+video+"\"></param><param name=\"wmode\" value=\"transparent\"></param><embed src=\"http://www.youtube.com/v/"+video+"\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"425\" height=\"350\"></embed></object></Center>\n";
code += "</BODY>\n";
code += "</HTML>";
file.WriteLine(code);
Opener.ShellExecute("\""+Browser+"\" "+MsgPlus.ScriptFilesPath+"\\Viewer.html","","","open",1);
file.WriteLine(" ");
file.Close();
}
what did i do wrong?
[code]