dev-linux
Ivan Maslov 5 years ago
parent b5ef9e3a13
commit aef5b77d4b

@ -24,12 +24,27 @@ def SessionConnect(inRDPSessionConfiguration):
#Expand the parameter section
UIDesktop.UIOSelector_Get_UIO(
[
{"process": lProcessId,"backend":"uia"},
{"title": "Пара&метры >>"}
]
{"process": lProcessId, "backend": "uia"},
{"class_name": "ToolbarWindow32"},
{"title": "Показать параметры ", "control_type": "Button"}]
).click()
#Select flag ask login/pass
UIDesktop.UIOSelector_Get_UIO(
[
{"process": lProcessId, "backend": "win32"},
{"title":"Общие"},
{"title":"Учетные данные"},
{"title":"&Всегда запрашивать учетные данные", "class_name":"Button"}]
).check()
#Set host:port
lHostPort=inRDPSessionConfiguration['host']
if 'port' in inRDPSessionConfiguration:
lHostPort=f"{lHostPort}:{inRDPSessionConfiguration['port']}"
UIDesktop.UIOSelector_Get_UIO(
[
{"process": lProcessId, "backend": "uia"},
{"title": "Компьютер:"},
{"title": "Компьютер:", "control_type": "Edit"}]
).set_text(f"{lHostPort}")
#Set user
#Select flag ask login/pass

@ -7,10 +7,10 @@ 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
"Host": "77.77.22.22", #Host address
"Port": "7777", #RDP Port
"Login": "test", # Login
"Password": "test", #Password
"Screen": {
"Resolution":"FullScreen", #"640x480" or "1680x1050" or "FullScreen". If Resolution not exists set full screen
"FlagUseAllMonitors": False, # True or False

Loading…
Cancel
Save