Основной сайт хуманэмулятор.рф | Демо | Купить | API | Wiki
Web / browser
get_cpu_class
get_cpu_class(); - Получить класс процессора CPUClassПосле выполнения функции возвращаемое значение будет равно одному из двух :
Пример использования
<?php // Scenario: Get current CPU class information // Path to the init.php file for connecting to the XHE API $xhe_host = getenv("RPABOT_HOST_URL"); if (!isset($path)){ // Path to the init.php file for connecting to the XHE API $path = "../../../Templates/init.php"; // Including init.php grants access to all classes and functionality for working with the XHE API require($path); } // The following code demonstrates the usage of the get_cpu_class function // Get current CPU class $cpu_class = WEB::$browser->get_cpu_class(); echo "\n\nCurrent CPU class: " . $cpu_class; // Quit the application WINDOW::$app->quit(); ?>
# Additional paths import sys sys.path.insert(0, '../../../Templates PY/') xhe_host = "127.0.0.1:7010" from xweb_human_emulator import * # начало echo("<hr><font color=blue>browser.xxxxxxxxx</font><hr>") # 1 echo("1. Получим класс CPU : ") echo(browser.get_cpu_class(),"<br>") # конец echo("<hr><br>") # Quit app.quit()
// подключим функциональные объекты, если еще не подключен xhe_host="127.0.0.1:7010"; echo=require("../../../Templates JS/init.js"); // начало echo("<hr><font color=blue>browser.get_cpu_class</font><hr>"); // 1 шаг echo("1. Получим класс CPU : "); echo(browser.get_cpu_class()+"<br>"); // конец echo("\n"); // Quit app.quit();
=============================================
Browser Объекты DOM System Vision Web Window
=============================================
если что-то непонятно или необходимо узнать или считаете что надо добавить по работе этой функции, пишите в комментарии или на наш форум
.