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:
Felu
Veteran Member
*****


Posts: 2223
Reputation: 72
30 / Male / Flag
Joined: Apr 2006
Status: Away
RE: [?] what is this! omg anyone help; problem ehre
code:
var Browser = "C:\\Program Files\\Internet Explorer\\iexplore.exe";
function viewVideo(video){
//var Browser = TubeOption.RegRead(TubeBrowser); (dont mind that)
var Opener = new ActiveXObject("WScript.Shell");
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.Run("\""+Browser+"\"  \""+MsgPlus.ScriptFilesPath+"\\Viewer.html\"");
file.WriteLine(" ");
file.Close();
}
You can open the same in the default browser too
code:
function viewVideo(video){
var Shell = new ActiveXObject("WScript.Shell");
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);
Shell.Run(MsgPlus.ScriptFilesPath+"\\Viewer.html");
file.WriteLine(" ");
file.Close();
}
12-16-2006 06:34 AM
Profile E-Mail 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