|
|
|
@ -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)
|
|
|
|
|
|
|
|
|
|