Object-Name: Object
Region: Gibson (254976, 256000)
Local-Position: (117, 129, 50)
The real message starts here.
Examples
string emailAddress ="somebody@example.com";
string emailHeader ="Someone touched me!";
default{touch_start(integer num_detected){// llSay(PUBLIC_CHANNEL, "Sending eMail report now, this will take ~20 seconds.");key id =llDetectedKey(0);
string name =llDetectedName(0);
llEmail(emailAddress, emailHeader,
"I was touched by: '"+ name +"' ("+(string)id +").");
// llSay(PUBLIC_CHANNEL, "Email has been sent.");}
Script to open a website in the browser as soon as
the script starts running
Shows dialog to avatar offering to load web page at url with message. If user clicks yes, launches the page in their web browser, starting the browser if required.
The url is truncated to 255 characters and message is truncated to 254 characters. The protocol for the url must be specified, currently only "https://" and "http://" are supported. The URL should be RFC-1738 compliant with proper escapes.
default
{
touch_start(integer num_detected)
{
key id
= llDetectedKey(0);
//
if the touching avatar is in the same sim
if
( llGetAgentSize(id) )
{
string info = "My best website!";
// must start with either "http://..." or
"https://..."