|
|
@ -138,18 +138,18 @@ def Monitor_ControlPanelDictGet(inRequest,inGlobalDict):
|
|
|
|
lResultJSON["RenderRobotList"].append(lItemResultDict)
|
|
|
|
lResultJSON["RenderRobotList"].append(lItemResultDict)
|
|
|
|
except Exception as e:
|
|
|
|
except Exception as e:
|
|
|
|
if lL: lL.exception(f"Error in control panel. CP item {lItem}. Exception is below")
|
|
|
|
if lL: lL.exception(f"Error in control panel. CP item {lItem}. Exception is below")
|
|
|
|
# Iterate throught the RDP list
|
|
|
|
# Iterate throught the RDP list
|
|
|
|
for lRDPSessionKeyStrItem in inGlobalDict["RobotRDPActive"]["RDPList"]:
|
|
|
|
for lRDPSessionKeyStrItem in inGlobalDict["RobotRDPActive"]["RDPList"]:
|
|
|
|
lRDPConfiguration = inGlobalDict["RobotRDPActive"]["RDPList"][
|
|
|
|
lRDPConfiguration = inGlobalDict["RobotRDPActive"]["RDPList"][
|
|
|
|
lRDPSessionKeyStrItem] # Get the configuration dict
|
|
|
|
lRDPSessionKeyStrItem] # Get the configuration dict
|
|
|
|
lDataItemDict = {"SessionKeyStr": "", "SessionHexStr": "", "IsFullScreenBool": False,
|
|
|
|
lDataItemDict = {"SessionKeyStr": "", "SessionHexStr": "", "IsFullScreenBool": False,
|
|
|
|
"IsIgnoredBool": False} # Template
|
|
|
|
"IsIgnoredBool": False} # Template
|
|
|
|
lDataItemDict["SessionKeyStr"] = lRDPSessionKeyStrItem # Session key str
|
|
|
|
lDataItemDict["SessionKeyStr"] = lRDPSessionKeyStrItem # Session key str
|
|
|
|
lDataItemDict["SessionHexStr"] = lRDPConfiguration["SessionHex"] # Session Hex
|
|
|
|
lDataItemDict["SessionHexStr"] = lRDPConfiguration["SessionHex"] # Session Hex
|
|
|
|
lDataItemDict["IsFullScreenBool"] = True if lRDPSessionKeyStrItem == inGlobalDict["RobotRDPActive"][
|
|
|
|
lDataItemDict["IsFullScreenBool"] = True if lRDPSessionKeyStrItem == inGlobalDict["RobotRDPActive"][
|
|
|
|
"FullScreenRDPSessionKeyStr"] else False # Check the full screen for rdp window
|
|
|
|
"FullScreenRDPSessionKeyStr"] else False # Check the full screen for rdp window
|
|
|
|
lDataItemDict["IsIgnoredBool"] = lRDPConfiguration["SessionIsIgnoredBool"] # Is ignored
|
|
|
|
lDataItemDict["IsIgnoredBool"] = lRDPConfiguration["SessionIsIgnoredBool"] # Is ignored
|
|
|
|
lResultJSON["RenderRDPList"].append(lDataItemDict)
|
|
|
|
lResultJSON["RenderRDPList"].append(lDataItemDict)
|
|
|
|
# Send message back to client
|
|
|
|
# Send message back to client
|
|
|
|
message = json.dumps(lResultJSON)
|
|
|
|
message = json.dumps(lResultJSON)
|
|
|
|
# Write content as utf-8 data
|
|
|
|
# Write content as utf-8 data
|
|
|
|