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

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

@ -7,10 +7,10 @@ sys.path.insert(0, lFolderPath)
######################################################### #########################################################
from pyOpenRPA.Tools.RobotRDPActive import RDPConnector from pyOpenRPA.Tools.RobotRDPActive import RDPConnector
mConfiguration={ mConfiguration={
"Host": "93.159.239.226", #Host address "Host": "77.77.22.22", #Host address
"Port": "8525", #RDP Port "Port": "7777", #RDP Port
"Login": "user22", # Login "Login": "test", # Login
"Password": "Tak181418Bar", #Password "Password": "test", #Password
"Screen": { "Screen": {
"Resolution":"FullScreen", #"640x480" or "1680x1050" or "FullScreen". If Resolution not exists set full screen "Resolution":"FullScreen", #"640x480" or "1680x1050" or "FullScreen". If Resolution not exists set full screen
"FlagUseAllMonitors": False, # True or False "FlagUseAllMonitors": False, # True or False

Loading…
Cancel
Save