#MinorFix (Robot, Studio)

dev-linux
Ivan Maslov 5 years ago
parent 4cd9a5f462
commit 6983d9029c

@ -721,9 +721,9 @@ def UIOEI_Convert_UIOInfo(inElementInfo):
###################################################################################################
#Get list of top level
#old name - GetRootElementList
def BackendStr_GetTopLevelList_UIOInfo(inBackend):
def BackendStr_GetTopLevelList_UIOInfo(inBackend=mDefaultPywinautoBackend):
#Получить список объектов
lResultList=pywinauto.findwindows.find_elements(top_level_only=True,backend=mDefaultPywinautoBackend)
lResultList=pywinauto.findwindows.find_elements(top_level_only=True,backend=inBackend)
lResultList2=[]
for lI in lResultList:
lTempObjectInfo=lI
@ -809,7 +809,7 @@ def UIO_FocusHighlight(lWrapperObject,colour='green',thickness=2,fill=win32defin
############################
#Старая версия
############################
mFlagIsDebug=False
mFlagIsDebug=True
#run()
lText = "Bitness:" + str(struct.calcsize("P") * 8)
@ -842,6 +842,7 @@ if not mFlagIsDebug:
lProcessResponse["ErrorTraceback"]=traceback.format_exc()
#Зафиксировать Error message
lProcessResponse["ErrorMessage"]=str(e)
#lProcessResponse["ErrorArgs"]=str(e.args)
#Отправить ответ в родительский процесс
ProcessCommunicator.ProcessParentWriteObject(lProcessResponse)

@ -69,6 +69,10 @@ class testHTTPServer_RequestHandler(BaseHTTPRequestHandler):
self.wfile.write(bytes(message, "utf8"))
# POST
def do_POST(self):
#Restart studio
if self.path == '/RestartStudio':
os.execl(sys.executable,os.path.abspath(__file__),*sys.argv)
sys.exit(0)
#Action ObjectInspector GetObjectList
if self.path == '/ObjectDetector/JSONGetWindowListArgs':
#ReadRequest

@ -331,8 +331,8 @@
console.log('Success handle:'+inHandleId)
var lResponseJSON = JSON.parse(lData)
///Ошибка
if (lResponseJSON.hasOwnProperty("Error")) {
mGlobal.ShowModal("GUI Error",lResponseJSON.Error);
if (lResponseJSON["ErrorFlag"]==true) {
mGlobal.ShowModal("GUI Error",lResponseJSON.ErrorMessage);
}
},
dataType: "text"
@ -345,14 +345,14 @@
$.ajax({
type: "POST",
url: 'GUIAction',
data: '{"functionName":"ElementDrawOutlineNew","argsArray":['+JSON.stringify(lSpecificationArray)+']}',
data: '{"ModuleName":"GUI","ActivityName":"UIOSelector_Highlight","ArgumentList":['+JSON.stringify(lSpecificationArray)+']}',
success:
function(lData,l2,l3)
{
lDataJSON=JSON.parse(lData);
///Показать ошибку, если таковая возникла
if (lDataJSON.hasOwnProperty("Error")) {
mGlobal.ShowModal("GUI Error",lDataJSON.Error);
if (lDataJSON["ErrorFlag"]==true) {
mGlobal.ShowModal("GUI Error",lDataJSON.ErrorMessage);
}
},
dataType: "text"
@ -690,6 +690,10 @@
<div class="ui input">
<input class="openrpa-value-backend" type="text" placeholder="Backend" value="win32">
</div>
<button class="ui labeled icon button red" onclick="">
<i class="down icon"></i>
Restart Studio
</button>
</div>
<div class="two wide column">
<h2 class="ui header inverted" style="margin-bottom:5px;">OpenRPA</h2>

Loading…
Cancel
Save