Reply
Honored Resident
Scars Steerpike
Posts: 57
0 Kudos

HELP: Web Content (text/html) Media Changer w/Menu Script

Ideally, I would like to do this with 1 prim.  Like maybe a tapered flat prim so it has a frame border, but if I have to use 1-5 prims that is okay too.

I also want a simple menu with like three buttons and no submenus.  The three buttons would direct me to three different websites.  example: button 1 = http://youtube.com, button 2 = http://google.com, and button 3 = http://yahoo.com

I tried making something like this but the problem is that I can't interact with any of the websites, because once I click on the webpage, it makes the menu pop open again.

I have been googling and reading like crazy for the last two days, but I'm not having any luck.  Some help would be greatly appreciated.  Thanks.

PS - I want to do this without using chat commands like "/2 http://youtube.com".  I tried linking two prims, each with the proper media texture.  One prim had the media changer script and the other one didn't.  I was hoping I could use one prim as the menu selecter and the other prim to interact with the website but it didn't work.  I tried making each prim the root prim, but same results.  I'm really stumped.  There has to be a way to do this.

Honored Resident
Scars Steerpike
Posts: 57
0 Kudos

Re: HELP: Web Content (text/html) Media Changer w/Menu Script

[ Edited ]

Reply to Scars Steerpike - view message

I hope I won't have to do this, but maybe I need to do a (2) prim w/ prim to prim communication thing?  Like clicking on one prim will give me the menu to select what website I want and then it will send the URL information to the second prim which will let me interact with it?  Hell if I know.  I don't want to give up though.

Darkie Minotaur
Posts: 1,616
Topics: 8
Kudos: 154
Blog Posts: 0
Registered: ‎02-23-2010

Re: HELP: Web Content (text/html) Media Changer w/Menu Script

Reply to Scars Steerpike - view message

That's what I would do - link a second prim for choosing the url and set it with llSetLinkMedia

Honored Resident
Scars Steerpike
Posts: 57
0 Kudos

Re: HELP: Web Content (text/html) Media Changer w/Menu Script

Reply to Darkie Minotaur - view message

I freaking LOVE you Darkie Minotaur!!!!!!!  So much!!!  Using llSetLinkMedia fixed everything!  So now my TV is only 1 prim and the script inside it is so short and simple.  But it works wonderfuly!  Yessssssssss!!!  Thank you!

Member
Ron Khondji
Posts: 231

Re: HELP: Web Content (text/html) Media Changer w/Menu Script

Reply to Scars Steerpike - view message

A tapered flat prim leaves a border. In that border you could put a texture with 3 ´buttons´.
Than use llDetectedTouchUV to determine which `button`was clicked.

Honored Resident
Scars Steerpike
Posts: 57
0 Kudos

Re: HELP: Web Content (text/html) Media Changer w/Menu Script

[ Edited ]

Reply to Ron Khondji - view message

Ron, that's not a bad idea.  It's unnecessary, but it would make the TV more pimp.  But whether I use it or not, doesn't really matter; cuz I really need the llDetectedTouchUV function for some of my other projects.  So thank YOU for mentioning that.  I had no idea what the name of that function was.  Thanks man!  Love you both!

Honored Resident
Scars Steerpike
Posts: 57
0 Kudos

Re: HELP: Web Content (text/html) Media Changer w/Menu Script

Reply to Scars Steerpike - view message

Oh, I do have one more question though.  I haven't used PRIM_MEDIA_CONTROLS yet, but I understand that it lets me choose between a standard web navigation control and a mini web navigation control.  Is there a way to get rid of the web navigation control completely via scripting?  If so, let me know how please.

Darkie Minotaur
Posts: 1,616
Topics: 8
Kudos: 154
Blog Posts: 0
Registered: ‎02-23-2010
0 Kudos

Re: HELP: Web Content (text/html) Media Changer w/Menu Script

Reply to Scars Steerpike - view message

You use  PRIM_MEDIA_PERMS_CONTROL for that - but you can set thi right from the start via the edit menu

Posts: 4,688
Registered: ‎09-15-2009

Re: HELP: Web Content (text/html) Media Changer w/Menu Script

Reply to Ron Khondji - view message


Ron Khondji wrote:

A tapered flat prim leaves a border. In that border you could put a texture with 3 ´buttons´.
Than use llDetectedTouchUV to determine which `button`was clicked.


This is the best solution because you can have many controls on a single face, but it can require a bit of skill in texturing.  One step simpler is using http://wiki.secondlife.com/wiki/LlDetectedTouchFace.  For your three sites you could go to a different site depending on whether they click the left, bottom or right 'frame'

Occam's Razor (House version): the simplest explanation is invariably ... someone screwed up.
Qie Niangao
Posts: 4,999
Registered: ‎02-25-2009

Re: HELP: Web Content (text/html) Media Changer w/Menu Script

Reply to PeterCanessa Oh - view message

I too was going to suggest per-face touch control... and hint that a single Mesh can have up to eight faces, arranged wherever you put them in the model.