What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [?] what is this! help to find default browser :O

[?] what is this! help to find default browser :O
Author: Message:
roflmao456
Skinning Contest Winner
****

Avatar

Posts: 955
Reputation: 24
29 / Male / Flag
Joined: Nov 2006
Status: Away
O.P. Sad  [?] what is this! help to find default browser :O
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]

This post was edited on 12-16-2006 at 07:07 PM by roflmao456.
[quote]
Ultimatess6
: What a noob mod
12-16-2006 06:04 AM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[?] what is this! help to find default browser :O - by roflmao456 on 12-16-2006 at 06:04 AM
RE: [?] what is this! omg anyone help; problem ehre - by Felu on 12-16-2006 at 06:34 AM
RE: [?] what is this! omg anyone help; problem ehre - by Matti on 12-16-2006 at 10:16 AM
RE: [?] what is this! omg anyone help; problem ehre - by Spunky on 12-16-2006 at 11:06 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On