From 77c7cebd047673ed08ffd55bce51954603017e12 Mon Sep 17 00:00:00 2001 From: Ivan Maslov Date: Tue, 2 Jun 2020 08:23:17 +0300 Subject: [PATCH] # Add Activity in RDP: RDPSessionMonitorStop --- Sources/pyOpenRPA/Orchestrator/Processor.py | 2 +- Sources/pyOpenRPA/Orchestrator/RobotRDPActive/Processor.py | 7 +++++++ v1.1.4 => v1.1.5 | 0 3 files changed, 8 insertions(+), 1 deletion(-) rename v1.1.4 => v1.1.5 (100%) diff --git a/Sources/pyOpenRPA/Orchestrator/Processor.py b/Sources/pyOpenRPA/Orchestrator/Processor.py index b1800f58..18f51448 100644 --- a/Sources/pyOpenRPA/Orchestrator/Processor.py +++ b/Sources/pyOpenRPA/Orchestrator/Processor.py @@ -56,7 +56,7 @@ import psutil # "Type":"ProcessStop", # "Name":"", # "FlagForce":True, -# "User":"" #Empty, user or %username% +# "User":"" #Empty - all users, user or %username% # }, # { # "Type":"PythonStart", diff --git a/Sources/pyOpenRPA/Orchestrator/RobotRDPActive/Processor.py b/Sources/pyOpenRPA/Orchestrator/RobotRDPActive/Processor.py index ae71eab7..20cd033e 100644 --- a/Sources/pyOpenRPA/Orchestrator/RobotRDPActive/Processor.py +++ b/Sources/pyOpenRPA/Orchestrator/RobotRDPActive/Processor.py @@ -56,6 +56,13 @@ def RDPSessionReconnect(inRDPSessionKeyStr): Connector.Session(lRDPConfigurationItem) return True +# Stop track the RDP session. Current def dont kill RDP session - only stop to track it (it can give ) +def RDPSessionMonitorStop(inRDPSessionKeyStr): + global gSettings + lResult = True + gSettings["RobotRDPActive"]["RDPList"].pop(inRDPSessionKeyStr,None) # Remove item from RDPList + return lResult + # Logoff the RDP session def RDPSessionLogoff(inRDPSessionKeyStr): global gSettings diff --git a/v1.1.4 b/v1.1.5 similarity index 100% rename from v1.1.4 rename to v1.1.5