|
SuezanneC Baskerville
Forums Rock!
Join date: 22 Dec 2003
Posts: 14,229
|
05-27-2006 10:04
The llLoadUrl function causes your computer to load the default web browser, and passes it a string for the url.
So one might be able to set a program of their choice as the default web browser and get it to open with an argument that starts with the http:// or https:// but which is not really an url , right?
So have a script create an url with some data that is useful to a program that you write, add an http:// to the front of it, click on the object, it calls the customized pseudo default web browser, which then runs with the url as a parameter.
I don't have a particular use for this at the moment, and don't know if it works, just thinking out loud.
You could make your custom program check for a special string in the url, if it didn't find the trigger string, it would just past the url along to your real preferred web browser.
_____________________
-
So long to these forums, the vBulletin forums that used to be at forums.secondlife.com. I will miss them.
I can be found on the web by searching for "SuezanneC Baskerville", or go to
http://www.google.com/profiles/suezanne
-
http://lindenlab.tribe.net/ created on 11/19/03.
Members: Ben, Catherine, Colin, Cory, Dan, Doug, Jim, Philip, Phoenix, Richard, Robin, and Ryan
-
|
|
yetihehe Saarinen
Registered beast
Join date: 19 Feb 2006
Posts: 40
|
05-28-2006 04:05
You could make a program controlling winamp.
|
|
Geuis Dassin
Filming Path creator
Join date: 3 May 2006
Posts: 565
|
05-28-2006 17:18
you actually don't need to change your OS settings at all. You can do this while using your default web browser(which should be Firefox, btw http://www.mozilla.org). You would need a PHP script on the backend that sends a header(location  ; response. For example, your LSL script would be something like llLoadUrl("http://www.myurl.com?&program=option1"  ; So this loads calls Firefox w/ myurl.com. You can specify different choices for program= to specify different resources to load. Your php script on the backend would be something like this: <? $program = $_GET('program'); switch($program){ case "option1": header('location  econdlife://Ahern/0/0/0'); break; case "option2": header('location  econdlife://Kasba/230/135/55'); break; } ?> So in this example it would tell your computer to have secondlife try to load different areas. (No, this doesn't work as a good teleport mechanism because once SL is already open, then all it does is bring up the map w/ the destination. It only auto-teleports you there if SL is not currently running.) So all you would have to do is replace the bit after location: with the url and program association you want to load. Like Windows Media Player is commonly mms:// I think, among others. One thing to realize is that not all players will necessarily have the same file associations, so you might end up with something that only works for 80-90% of people. What I would do in the case of media files would just to use a normal http:// URL because most web browsers will already have the association for the right media player to open, or might even open the media file in FF directly. Hope this helps. Geuis
|