Shoutbox

Hey, a great idea but how do you do it? - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: Hey, a great idea but how do you do it? (/showthread.php?tid=69032)

Hey, a great idea but how do you do it? by roflmao456 on 12-01-2006 at 01:32 AM

is it possible to add Youtube videos (flash embedded) on an interface window?


RE: Hey, a great idea but how do you do it? by Spunky on 12-01-2006 at 01:50 AM

No. There is no control for this.


RE: Hey, a great idea but how do you do it? by Voldemort on 12-01-2006 at 01:50 AM

Launching google player from a script xD


RE: Hey, a great idea but how do you do it? by Baggins on 12-01-2006 at 01:52 AM

Not with the built in interface window, but if you had a dll you could create one.  Not worth the effort for most scripts though


RE: Hey, a great idea but how do you do it? by Spunky on 12-01-2006 at 01:55 AM

Why not use

code:

var IE = new ActiveXObject("InternetExplorer.Application");


Then remove the address bar/toolbars etc and goto the videos url in that?
RE: Hey, a great idea but how do you do it? by roflmao456 on 12-01-2006 at 02:04 AM

quote:
Originally posted by SpunkyLoveMuff
Why not use
code:

var IE = new ActiveXObject("InternetExplorer.Application");


Then remove the address bar/toolbars etc and goto the videos url in that?

example please i dont know how to use that kind of activexobject

RE: RE: Hey, a great idea but how do you do it? by alexp2_ad on 12-01-2006 at 02:07 AM

quote:
Originally posted by roflmao456

example please i dont know how to use that kind of activexobject


code:

var IE = new ActiveXObject("InternetExplorer.Application");
IE.toolbar = false;
IE.menubar = false;
IE.addressbar = false;
IE.visible = true;
IE.navigate("http://www.youtube.com/");


EDIT:  [insert generic "learn to use google" comment here]
RE: Hey, a great idea but how do you do it? by roflmao456 on 12-01-2006 at 02:16 AM

thanks but i also need to know like say to get the URL after the

http://youtube.com/v/

like

http://www.youtube.com/v/YzWSSp9s6BY

the "YzWSSp9s6BY" is what im aiming for.. like to exclude everything except the url.


RE: Hey, a great idea but how do you do it? by deAd on 12-01-2006 at 02:34 AM

It may be possible using the Browser control, but I know that's hard if not impossible from a script...otherwise you can't implement it into a Plus! window. you'd have to use external applications (IE, firefox, a video player, etc)


RE: Hey, a great idea but how do you do it? by CookieRevised on 12-01-2006 at 02:42 AM

quote:
Originally posted by roflmao456
thanks but i also need to know like say to get the URL after the

http://youtube.com/v/

like

http://www.youtube.com/v/YzWSSp9s6BY

the "YzWSSp9s6BY" is what im aiming for.. like to exclude everything except the url.
that's pure string manipulation. Doesn't even have anything todo with URLs or whatever.

string is "http://www.youtube.com/p.swf?video_id=YzWSSp9s6BY&eurl=http%3A//msghelp.net/showblahblahblahblahblah", so search for "video_id=" within that string and get everything after that until the next "&" character.

Then stick that found substring after a new string "http://youtube.com/v/".
RE: Hey, a great idea but how do you do it? by roflmao456 on 12-01-2006 at 02:44 AM

quote:
Originally posted by CookieRevised
that's pure string manipulation. Doesn't even have anything todo with URLs or whatever.

string is "http://www.youtube.com/p.swf?video_id=YzWSSp9s6BY&eurl=http%3A//msghelp.net/showblahblahblahblahblah", so search for "video_id=" within that string until the next "&" character.

now i wonder how to do that... lol

sorry if asking too much but im just new to "finding in strings"
RE: Hey, a great idea but how do you do it? by CookieRevised on 12-01-2006 at 02:47 AM

quote:
Originally posted by roflmao456
quote:
Originally posted by CookieRevised
that's pure string manipulation. Doesn't even have anything todo with URLs or whatever.

string is "http://www.youtube.com/p.swf?video_id=YzWSSp9s6BY&eurl=http%3A//msghelp.net/showblahblahblahblahblah", so search for "video_id=" within that string until the next "&" character.
now i wonder how to do that... lol
* RTFM (Read The Fantastique Manual)
* Google

http://www.msgpluslive.net/scripts/view/152-Windo...ipt-Documentation/

things you wanna read:
* String Object
* indexOf()
* substr()
* substring()
* Regular Expressions (<= but don't start with that)


quote:
Originally posted by roflmao456
sorry if asking too much but im just new to "finding in strings"
you're not asking too much... But if you don't know this, I really wonder what you've been doing with all those releases you've done before. Plain basic string manipulation like that is the basics of basics...

I really suggest some tutorial on JScript (search google) and do everything step by step instead of trying to start with step 80/100. ;)