# Add Activity in RDP: RDPSessionMonitorStop

dev-linux
Ivan Maslov 5 years ago
parent a08e70f2c1
commit 77c7cebd04

@ -56,7 +56,7 @@ import psutil
# "Type":"ProcessStop", # "Type":"ProcessStop",
# "Name":"", # "Name":"",
# "FlagForce":True, # "FlagForce":True,
# "User":"" #Empty, user or %username% # "User":"" #Empty - all users, user or %username%
# }, # },
# { # {
# "Type":"PythonStart", # "Type":"PythonStart",

@ -56,6 +56,13 @@ def RDPSessionReconnect(inRDPSessionKeyStr):
Connector.Session(lRDPConfigurationItem) Connector.Session(lRDPConfigurationItem)
return True 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 # Logoff the RDP session
def RDPSessionLogoff(inRDPSessionKeyStr): def RDPSessionLogoff(inRDPSessionKeyStr):
global gSettings global gSettings

Loading…
Cancel
Save