Difference between revisions of "LlLoadURL/ja"

From Second Life Wiki
Jump to navigation Jump to search
(Japanese translation)
 
Line 1: Line 1:
{{LSL_Function/avatar/ja|avatar|sim=*}}{{LSL_Function/ja
{{LSL_Function/avatar/ja|avatar|sim=*}}{{LSL_Function/ja
|func_id=297|func_sleep=10.0|func_energy=10.0
|func_id=297|func_sleep=0.1|func_energy=10.0
|func=llLoadURL|sort=LoadURL
|func=llLoadURL|sort=LoadURL
|p1_type=key|p1_name=avatar
|p1_type=key|p1_name=avatar
Line 10: Line 10:
|spec
|spec
|caveats=*この関数はグループに譲渡したオブジェクトで使ってはいけません。{{Footnote|使えた事もあります。[[#History|経緯]] 参照のこと}}。その場合、実行に失敗してもエラー表示は出ません。
|caveats=*この関数はグループに譲渡したオブジェクトで使ってはいけません。{{Footnote|使えた事もあります。[[#History|経緯]] 参照のこと}}。その場合、実行に失敗してもエラー表示は出ません。
*この関数は、自分自身をミュートしている場合、黙って失敗します。{{Footnote|ユーザーが自分自身をミュートするのは困難なため、これをデバッグするのは困難ですが、どうやらそれは発生します。}}
|constants
|constants
|examples=
|examples=
<source lang="lsl2">// URL ダイアログを表示する
<source lang="lsl2">
default
default
{
{
     touch_start(integer num_detected)
     touch_start(integer num_detected)
     {
     {
         key gAvatarKey = llDetectedKey(0);
         key     id              = llDetectedKey(0);
         llLoadURL(gAvatarKey, "Second Life 公式サイトを表示", "http://www.secondlife.com");
         integer avatarInSameSim = (llGetAgentSize(id) != ZERO_VECTOR);// TRUE または FALSE
    }
 
}</source>
        if (avatarInSameSim)
<source lang="lsl2">
        {
//Compact Script by Alessandro Spires to SecondBits and Second Life
            string info = "Second Life 公式サイトを表示";
default
{
  touch_start(integer num_detected)
  {
      llLoadURL(llDetectedKey(0), "Visit the Second Life", "http://www.secondlife.com");  
  }
}</source>
<source lang="lsl2">//Emmas Seetan
//21 September 17:06


string text = "Visit the Second Life Wiki!"; // フローティング テキスト
            // 必ず、"http://..." または "https://..." で始める必要があります。
string url = "https://wiki.secondlife.com/"; // 'http://' を必ず含む
            string url = "http://www.secondlife.com/";


default
            llLoadURL(id, info, url);
{
        }
    touch_start(integer num_detected)
        else
    {
        {
        llLoadURL(llDetectedKey(0), text, url); // URL を表示
            llInstantMessage(id, "あなたがわたしの SIM にいる場合のみ、あなたの画面に URL ダイアログを開くことが出来ます。");
        }
     }
     }
}</source>
}
</source>
|helpers
|helpers
|also_functions
|also_functions

Latest revision as of 02:21, 1 April 2017

要約

関数: llLoadURL( key avatar, string message, string url );

アバター avatar に Web ページ url を表示する旨のダイアログをメッセージ message と共に表示します。
ユーザが [ページに移動] をクリックすると、必要ならばブラウザを起動した上で、そのページをブラウザで表示します。

• key avatar 同一 地域 にいるアバターの UUID
• string message
• string url

url は 255 文字を超えた分は切り捨てられます。message は 254 文字を超えた分は切り捨てられます。
url にはプロトコルの指定が必須です。現在 "https://" と "http://" だけが指定可能です。
URL には RFC-1738 に準拠した正しいエスケープを行わなければなりません。

警告

  • この関数は 0.1 秒間、スクリプトを停止します。
  • この関数はグループに譲渡したオブジェクトで使ってはいけません。[1]。その場合、実行に失敗してもエラー表示は出ません。
  • この関数は、自分自身をミュートしている場合、黙って失敗します。[2]
All Issues ~ Search JIRA for related Bugs

サンプル

default
{
    touch_start(integer num_detected)
    {
        key     id              = llDetectedKey(0);
        integer avatarInSameSim = (llGetAgentSize(id) != ZERO_VECTOR);// TRUE または FALSE

        if (avatarInSameSim)
        {
            string info = "Second Life 公式サイトを表示";

            // 必ず、"http://..." または "https://..." で始める必要があります。
            string url = "http://www.secondlife.com/";

            llLoadURL(id, info, url);
        }
        else
        {
            llInstantMessage(id, "あなたがわたしの SIM にいる場合のみ、あなたの画面に URL ダイアログを開くことが出来ます。");
        }
    }
}

特記事項

経緯

  • Version 1.6 で導入され、グループに譲渡されたオブジェクトでは動作しませんでした。
  • Version ~1.9 以下で、グループに譲渡されたオブジェクトで動作するようになりました。 (おそらく手違いです)
  • 2007-03-14 のサーバ アップデートで、グループに譲渡されたオブジェクトでの動作が無効に戻りました。
Search JIRA for related Issues

テスト

• llLoadURL Test

脚注

  1. ^ 使えた事もあります。経緯 参照のこと
  2. ^ ユーザーが自分自身をミュートするのは困難なため、これをデバッグするのは困難ですが、どうやらそれは発生します。

Signature

function void llLoadURL( key avatar, string message, string url );
この翻訳は 原文 と比べて古いですか?間違いがありますか?読みにくいですか?みんなで 修正 していきましょう! (手順はこちら)
この項目はあなたにとって参考にならない項目ですか?もしかしたらLSL Wikiの関連した項目が参考になるかもしれません。