From 16dcab5d9712e008c7b345e895b825920a3ae8c6 Mon Sep 17 00:00:00 2001 From: Ivan Maslov Date: Wed, 1 May 2019 22:00:13 +0300 Subject: [PATCH] #Python keyboard (need to install in python) #Robot_RestoreParentHierarchy --- Orchestrator/orchestratorMain.py | 1 - README.md | 2 +- Robot/Index.xhtml | 26 +++++++++++++++++++++++--- Robot/winGUI.py | 10 +++++++++- 4 files changed, 33 insertions(+), 6 deletions(-) diff --git a/Orchestrator/orchestratorMain.py b/Orchestrator/orchestratorMain.py index 4c82fcc6..ceba7b4b 100644 --- a/Orchestrator/orchestratorMain.py +++ b/Orchestrator/orchestratorMain.py @@ -7,7 +7,6 @@ import os import signal import pdb import orchestratorServer - lGlobalDict={} #"JSONConfigurationDict": #"ActivityLog":[{""}] diff --git a/README.md b/README.md index 3c570ae5..8dbab295 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Open source RPA platform (Coming soon Q2 2019) for Windows. Dependencies -* Python 3 x32 [psutil, pywinauto, wmi, PIL] +* Python 3 x32 [psutil, pywinauto, wmi, PIL, Keyboard] * Python 3 x64 * pywinauto (Windows GUI automation) * Semantic UI CSS framework diff --git a/Robot/Index.xhtml b/Robot/Index.xhtml index 46a84a24..83ce655a 100644 --- a/Robot/Index.xhtml +++ b/Robot/Index.xhtml @@ -35,7 +35,7 @@ mGlobal.Actions.fAutomationSearchMouseElementHierarchyRun= function(inElementId) { //Подгрузка массива спецификаций - lSpecificationArray = mGlobal.GUIElement[inElementId].GUISelectorFull + lSpecificationArray = mGlobal.GUIElement[inElementId].GUISelectorFull; ///Загрузка данных $.ajax({ type: "POST", @@ -44,11 +44,31 @@ success: function(lData,l2,l3) { - var lResponseJSON=JSON.parse(lData) + var lResponseJSON=JSON.parse(lData); + ///Подготовить структуру рендеринга, если у текущего объекта имееется родитель + var lStructureToRender=lResponseJSON.outputObject; + if (lSpecificationArray.length>1) { + var lStructureToRenderParent=[] + var lStructureToRenderLocal=lStructureToRenderParent; + for (var i=0;i