PHP example:
<?php $xhe_host = "127.0.0.1:7010"; //connect the object to control the emulator, if not already connected if(!isset($path)) $path = "../../../Templates/xweb_human_emulator.php"; require($path); //Start echo "<hr> <font color = blue> window->".basename(__FILE__)."</font> <hr>"; //1 echo "1.Get the parameters of the given task:"; echo $scheduler->get(2, $path _, $type, $date, $time, $count, $active, $comments, $add_param).": <br>"; echo "path =".$path_; echo " ntype =".$type; echo " ndate =".$date; echo " ntime =".$time; echo " ncount =".$count; echo " nactive =".$active; echo " ncomments =".$comments; echo " nadd_param =".$add_param; //end echo "<hr> <br>"; //Quit $app->quit(); ?>
Python example:
# Additional paths import sys sys.path.insert(0, '../../../Templates PY/') xhe_host = "127.0.0.1:7010" from xweb_human_emulator import * # Start echo("<hr> <font color = blue> scheduler.xxxxxxxxx </font> <hr>") # 1 echo("1.Get the parameters of the given task:") path_, type, date, time_, count, active, comments, add_param = scheduler.get(2) echo(scheduler.get(2), ": <br>") echo("path =" + path_) echo(" type = "+ type) echo(" date = "+ date) echo(" time = "+ time_) echo(" count = "+ count) echo(" active = "+ active) echo(" comments = "+ comments) echo(" add_param = "+ add_param) # end echo("<hr> <br>") # Quit app.quit()
C# example:
#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:7043"; InitXHE(); //Start echo("<hr> <font color = blue> scheduler.clear_tab_content </font> <hr>"); //variables describing the task string path = ""; int type = -1; string date = ""; string time = ""; int count = -1; bool active = false; string comments = ""; //1 step echo("1.Get the parameters of the given task:"); echo(scheduler.get(0, ref path, ref type, ref date, ref time, ref count, ref active, ref comments) + ": <br>"); echo("path =" + path); echo(" ntype =" + type); echo(" ndate =" + date); echo(" ntime =" + time); echo(" ncount =" + count); echo(" nactive =" + active); echo(" ncomments =" + comments); //end echo("<hr> <br>"); app.quit(); } }
Java Script example:
//connect the object to control the emulator, if not already connected xhe_host = "127.0.0.1:7011"; echo = require("../../../Templates JS/xweb_human_emulator.js"); //Start echo("<hr> <font color = blue> window.get </font> <hr>"); //1 step echo("1.Get the parameters of the given task:"); var task = new Array(7); echo(scheduler.get(0, task) + ": <br>"); //get from the array - task data var path_, type, date, time, count, active, comments; path_ = task [0]; type = task [1]; date = task [2]; time = task [3]; count = task [4]; active = task [5]; comments = task [6]; //display task data echo("path =" + path_); echo(" ntype =" + type); echo(" ndate =" + date); echo(" ntime =" + time); echo(" ncount =" + count); echo(" nactive =" + active); echo(" ncomments =" + comments); //end echo("<hr> <br>"); //Quit app.quit();