From 6c4d52c41847fa46457f870f11b3a868861fde1e Mon Sep 17 00:00:00 2001 From: Ivan Maslov Date: Sun, 17 Nov 2019 11:30:12 +0300 Subject: [PATCH] NewWayOfRDPRobot-Create.rdp file and run it --- .../Tools/RobotRDPActive/RDPConnector.py | 6 +++--- .../pyOpenRPA/Tools/RobotRDPActive/Template.rdp | Bin 0 -> 2320 bytes 2 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 Sources/pyOpenRPA/Tools/RobotRDPActive/Template.rdp diff --git a/Sources/pyOpenRPA/Tools/RobotRDPActive/RDPConnector.py b/Sources/pyOpenRPA/Tools/RobotRDPActive/RDPConnector.py index 3cf1a18d..1d751b20 100644 --- a/Sources/pyOpenRPA/Tools/RobotRDPActive/RDPConnector.py +++ b/Sources/pyOpenRPA/Tools/RobotRDPActive/RDPConnector.py @@ -37,9 +37,9 @@ def SessionConnect(inRDPSessionConfiguration): {"title":"&Всегда запрашивать учетные данные", "class_name":"Button"}] ).check() #Set host:port - lHostPort=inRDPSessionConfiguration['host'] - if 'port' in inRDPSessionConfiguration: - lHostPort=f"{lHostPort}:{inRDPSessionConfiguration['port']}" + lHostPort=inRDPSessionConfiguration['Host'] + if 'Port' in inRDPSessionConfiguration: + lHostPort=f"{lHostPort}:{inRDPSessionConfiguration['Port']}" UIDesktop.UIOSelector_Get_UIO( [ {"process": lProcessId, "backend": "uia"}, diff --git a/Sources/pyOpenRPA/Tools/RobotRDPActive/Template.rdp b/Sources/pyOpenRPA/Tools/RobotRDPActive/Template.rdp new file mode 100644 index 0000000000000000000000000000000000000000..208b9316b81f430820fcbcf4f5893045013c3eeb GIT binary patch literal 2320 zcmai$&2H0B5QS%r#5?!_Sd>zMlqF)(B|Fw`k|t3cJBr;xRPpM-`DSe2Ys)Q)T07VC zb7tn8asK{kZEY9Z>Qh@`Cu?k@`@#;ouJnIpAML%pvnOl){G_|eIz7R*?rm<|2G7=x zdfM38etL|~_Px!E{TNSvFWB$peXyPEyV2u5I}0CBwE7%8dtndCbRO-$>b$dWvN`Lz zx9|Z;t&_$*JJq|=-O6t4gMHH9t?s!0sQ;h+dS`d~7AKt2fwlZkibA&%g1kpZJ-G@| zW2LM%%HQa7?9ttNlv4fMIQq4$K>6emht5a5$oMQfdP+AdSrfYyj^j9|JUjSmeYUb- zK71>5ca`_H$MD55VAE+njWQn<@k!re?p^Pl$0cVi9BH2a^Ps+V#Jq%ym`ow@3;va= zuM&a*88N7L>m8cL$@>)f2Jb@trQ%fXP3=Rb=xRJ`WL4Oscd64|>pgAMiM>$O;$fa4 z_nET17bPZL?8qC}X1!y)xT8^1RcXQv9>Z#>l$g)$blhLS>!FLtl& z_