humanemulator.net — справка.
Продукт, демо и покупка — на
хуманэмулятор.рф
|
Демо
|
Купить
|
API
|
Changelog
wait_copy
wait_copy($path,$wait_count=2000,$wait_step=5,$is_verbose=true); - /. : .
:
:
<?php // Scenario: Demonstrates waiting for file existence and copying completion $xhe_host = getenv("RPABOT_HOST_URL"); // Connect functional objects if not already connected if (!isset($path)){ $path = "../../../Templates/init.php"; require($path); } // info echo "\n<span >file_os->" . basename (__FILE__) . "</span>\n"; // File path $filePath = "E:/Disk Copy/B917A2DBC6B2900F-00-00.mrimg"; // Example 1: Wait for file to appear within 200 seconds echo "\n\n1. Wait for file to appear within 200 seconds: "; $timeout = 200; $checkInterval = 1; $result = SYSTEM::$file_os->wait_for_exist($filePath, $timeout, $checkInterval); if ($result) { echo "File exists\n"; } else { echo "File does not exist within timeout period\n"; } // Example 2: Wait for file copying to complete echo "\n2. Wait for file copying to complete: "; $result = SYSTEM::$file_os->wait_copy($filePath); if ($result) { echo "File copying completed\n"; } else { echo "File copying not completed or failed\n"; } // Quit the application WINDOW::$app->quit(); ?>
# Additional paths import sys sys.path.insert(0, '../../../Templates PY/') xhe_host = "127.0.0.1:7039" from xweb_human_emulator import * # echo("<hr><font color=blue>file_os.xxxxxxxxx</font><hr>") # path = "E:/Disk Copy/B917A2DBC6B2900F-00-00.mrimg"; # 2 echo("2. 200 : "); echo(file_os.wait_for_exist(path,200,1),"<br>"); # 1 echo("1. : "); echo(file_os.wait_copy(path),"<br>"); # echo("<hr><br>") # Quit app.quit()
#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 = Environment.GetEnvironmentVariable("RPABOT_HOST_URL"); InitXHE(); // echo("<hr><font color=blue>file_os.is_exist</font><hr>"); // var path = "E:/Disk Copy/B917A2DBC6B2900F-00-00.mrimg"; // 2 echo("2. 200 : "); echo(file_os.wait_for_exist(path,200,1)+"<br>"); // 1 echo("1. : "); echo(file_os.wait_copy(path)+"<br>"); // echo("\n\n"); app.quit(); } }
// , xhe_host="127.0.0.1:7039"; echo=require("../../../Templates JS/init.js"); // echo("<hr><font color=blue>file_os.is_exist</font><hr>"); // path = "E:/Disk Copy/B917A2DBC6B2900F-00-00.mrimg"; // 2 echo("2. 200 : "); echo(file_os.wait_for_exist(path,200,1)+"<br>"); // 1 echo("1. : "); echo(file_os.wait_copy(path)+"<br>"); // echo("\n"); // Quit app.quit();
=============================================
file_os DOM System Vision Web Window
=============================================
- ,
.