DOM / textarea



seek_to_end_by_number

seek_to_end_by_number($number,$frame=-1); -

  • $number (int) . 0 . , , , .
  • $frame , (string). . -1 - . , .
    4.6.41 : , , , : "1:0:5" - 1 0 5
    7.0.38 : "url=>XXX", , src, "name=>XXX" - , .

    ( boolean):
  • true
  • false ( , )

    (PHP):
    ===============================================================

    <?php $xhe_host = "127.0.0.1:7016";
     
    //     ,    
    if (!isset($path))
      $path="../../../Templates/xweb_human_emulator.php";
    require($path);
     
    // 
    echo "<hr><font color=blue>textarea->".basename (__FILE__)."</font><hr>";
     
    // 1 
    echo "1.    : ";
    echo $browser->navigate("http://humanemulator.net/poligon/textarea.html")."<br>";
     
     
    // 2 
    echo "2.        3  : ";
    echo $textarea->set_value_by_number(3,"Focus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygi")." ";
    echo $textarea->seek_to_end_by_number(3)."<br>";
     
     
    // 3 
    echo "3.        : ";
    if(!$textarea->seek_to_end_by_number(100500))
      echo "  <br>";
     
    // 4 
    echo "4.        0     : ";
    echo $textarea->set_value_by_number(0,"Focus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygi",0)." ";
    echo $textarea->seek_to_end_by_number(0,0)."<br>";
     
    // 5 
    echo "5.           : ";
    if(!$textarea->seek_to_end_by_number(100500,0))
      echo "  <br>";
     
    // 6 
    echo "6.          : ";
    if(!$textarea->seek_to_end_by_number(0,5))
      echo "  <br>";
     
    // 
    echo "<hr><br>";
     
    // Quit
    $app->quit();
    ?>

    (Python):
    ===============================================================

    # Additional paths
    import sys
    sys.path.insert(0, '../../../Templates PY/')
     
    xhe_host = "127.0.0.1:7011"
    from xweb_human_emulator import *
     
    # 
    echo("<hr><font color=blue>textarea.xxxxxxxxx</font><hr>")
     
    # 1 
    echo("1.    : ")
    echo(browser.navigate("http://www.humanemulator.net/poligon/textarea.html"),"<br>")
     
    # 2 
    echo("2.        0  : ")
    echo(textarea.set_value_by_number(0,"Focus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygi")," ")
    echo(textarea.seek_to_end_by_number(0),"<br>")
     
    # 3 
    echo("3.        : ")
    if not textarea.seek_to_end_by_number(100500):
      echo("  <br>")
     
    # 4 
    echo("4.        0     : ")
    echo(textarea.set_value_by_number(0,"Focus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygi",0)," ")
    echo(textarea.seek_to_end_by_number(0,0),"<br>")
     
    # 5 
    echo("5.           : ")
    if not textarea.seek_to_end_by_number(100500,0):
      echo("  <br>")
     
    # 6 
    echo("6.          : ")
    if not textarea.seek_to_end_by_number(0,5):
      echo("  <br>")
     
    # 
    echo("<hr><br>")
     
    # Quit
    app.quit()

    (C#):
    ===============================================================

    #region using
     
    using System;
    using System.Diagnostics;
    using System.Collections.Generic;
    using System.Linq;
    using System.IO;
    using System.Text;
    using System.Threading;
     
    using XHE;
    using XHE.XHE_DOM;
    using XHE.XHE_System;
    using XHE.XHE_Window;
    using XHE.XHE_Web;
     
    #endregion
     
     class Program:XHEScript
     {
    	  static void Main(string[] args)
    	  {
    			// init XHE
    			server="127.0.0.1:7010";
    			InitXHE();
     
    			// 
    			echo("<hr><font color=blue>textarea.seek_to_end_by_number</font><hr>");
     
    			// 1 
    			echo("1.    : ");
    			echo(browser.navigate("www.humanemulator.net/poligon/textarea.html")+"<br>");
     
    			// 2 
    			echo("2.        0  : ");
    			echo(textarea.seek_to_end_by_number(0)+"<br>");
    			keyboard.send_input("1234567890-=+_!@#%^&*()");
     
    			// 3 
    			echo("3.        : ");
    			if(!textarea.seek_to_end_by_number(100500))
    			  echo("  <br>");
     
    			// 4 
    			echo("4.        0     : ");
    			echo(textarea.seek_to_end_by_number(0,"0")+"<br>");
    			keyboard.send_input("1234567890-=+_!@#%^&*()");
     
    			// 5 
    			echo("5.           : ");
    			if(!textarea.seek_to_end_by_number(100500,"0"))
    			  echo("  <br>");
     
    			// 6 
    			echo("6.          : ");
    			if(!textarea.seek_to_end_by_number(0,"5"))
    			  echo("  <br>");
     
    			// 
    			echo("<hr><br>");
     
    			app.quit();            
    	  }
    }

    (JS):
    ===============================================================

    //     ,    
    xhe_host="127.0.0.1:7010";
    echo=require("../../../Templates JS/xweb_human_emulator.js");
     
    // 
    echo("<hr><font color=blue>textarea.seek_to_end_by_number</font><hr>");
     
    // 1 
    echo("1.    : ");
    echo(browser.navigate("http://www.humanemulator.net/poligon/textarea.html")+"<br>");
     
     
    // 2 
    echo("2.        0  : ");
    echo(textarea.set_value_by_number(0,"Focus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygi")+" ");
    echo(textarea.seek_to_end_by_number(0)+"<br>");
     
     
    // 3 
    echo("3.        : ");
    if(!textarea.seek_to_end_by_number(100500))
      echo("  <br>");
     
    // 4 
    echo("4.        0     : ");
    echo(textarea.set_value_by_number(0,"Focus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygiFocus   zxygi",0)+" ");
    echo(textarea.seek_to_end_by_number(0,0)+"<br>");
     
    // 5 
    echo("5.           : ");
    if(!textarea.seek_to_end_by_number(100500,0))
      echo("  <br>");
     
    // 6 
    echo("6.          : ");
    if(!textarea.seek_to_end_by_number(0,5))
      echo("  <br>");
     
    // 
    echo("<hr><br>");
     
    // Quit
    app.quit();

    =============================================
    Textarea         DOM  System  Vision  Web  Window        
    =============================================
    - , .