#1.0.26 #Robot bug fix + RDPActive robot

dev-linux
Ivan Maslov 5 years ago
parent e00eb589ac
commit 927bda7564

@ -20,6 +20,7 @@ import datetime
import logging
import re
import copy
#Создать файл логирования
# add filemode="w" to overwrite
if not os.path.exists("Reports"):
@ -443,10 +444,12 @@ def Get_OSBitnessInt ():
def UIOSelector_SafeOtherGet_Process(inUIOSelector):
#Default value
lResult = None
#Get selector bitness
lUIOSelectorAppBitness = UIOSelector_Get_BitnessStr(inUIOSelector)
if lUIOSelectorAppBitness and Utils.ProcessBitness.mSettingsDict["BitnessProcessCurrent"] != lUIOSelectorAppBitness:
lResult = Utils.ProcessBitness.OtherProcessGet()
#Go check bitness if selector exists
if inUIOSelector:
#Get selector bitness
lUIOSelectorAppBitness = UIOSelector_Get_BitnessStr(inUIOSelector)
if lUIOSelectorAppBitness and Utils.ProcessBitness.mSettingsDict["BitnessProcessCurrent"] != lUIOSelectorAppBitness:
lResult = Utils.ProcessBitness.OtherProcessGet()
return lResult
##################################################################################################
#inControlSpecificationArray - List of dict, dict in pywinauto.find_windows notation

@ -1,4 +1,7 @@
#Import parent folder to import current / other packages
#########################################################
import sys
lFolderPath = "\\".join(__file__.split("\\")[:-2])
sys.path.append(lFolderPath)
from Studio import Studio
lFolderPath = "\\".join(__file__.split("\\")[:-3])
sys.path.insert(0, lFolderPath)
#########################################################
from pyOpenRPA.Studio import Studio

@ -0,0 +1,34 @@
#Import parent folder to import current / other packages
from pyOpenRPA.Robot import UIDesktop #Lib to access RDP window
import os #os for process run
import time
#Connect to RDP session
"""
{
"Host": "", #Host address
"Port": "", #RDP Port
"Login": "", # Login
"Password": "", #Password
"Screen": {
"Resolution":"FullScreen", #"640x480" or "1680x1050" or "FullScreen". If Resolution not exists set full screen
"FlagUseAllMonitors": False, # True or False
"DepthBit":"" #"32" or "24" or "16" or "15"
}
}
"""
def SessionConnect(inRDPSessionConfiguration):
#Run mstsc
os.system("mstsc.exe")
time.sleep(2)
#Expand the parameter section
UIDesktop.UIOSelector_Get_UIO(
[
{"title":"Подключение к удаленному рабочему столу","backend":"uia"},
{"title":"Пара&метры >>"}
]
).click()
#Set host:port
#Set user
#Select flag ask login/pass

@ -0,0 +1,6 @@
#Robot RDPActive settings
def Settings():
mDict = {
}
return mDict

@ -0,0 +1,19 @@
#Import parent folder to import current / other packages
#########################################################
import sys
lFolderPath = "\\".join(__file__.split("\\")[:-4])
sys.path.insert(0, lFolderPath)
#########################################################
from pyOpenRPA.Tools.RobotRDPActive import RDPConnector
mConfiguration={
"Host": "93.159.239.226", #Host address
"Port": "8525", #RDP Port
"Login": "user22", # Login
"Password": "Tak181418Bar", #Password
"Screen": {
"Resolution":"FullScreen", #"640x480" or "1680x1050" or "FullScreen". If Resolution not exists set full screen
"FlagUseAllMonitors": False, # True or False
"DepthBit":"" #"32" or "24" or "16" or "15"
}
}
RDPConnector.SessionConnect(mConfiguration)

@ -1,4 +1,6 @@
Beta before 1.0.1 (new way of OpenRPA with improovments. Sorry, but no backward compatibility)/ Backward compatibility will start from 1.0.1
[1.0.26]
Robot UIDesktop bug fix in Safe other process function
[1.0.25]
*Dont upload to PyPi* - Not tested
Created safe call function in UIDesktop

Loading…
Cancel
Save