|
|
@ -17,6 +17,16 @@ def RenderRobotRDPActive(inGlobalConfiguration):
|
|
|
|
lOnClickSafeTurnOff = "mGlobal.Processor.ServerValueSet(['Storage','RobotRDPActive','OrchestratorToRobotResetStorage','SafeTurnOff'],true);"
|
|
|
|
lOnClickSafeTurnOff = "mGlobal.Processor.ServerValueSet(['Storage','RobotRDPActive','OrchestratorToRobotResetStorage','SafeTurnOff'],true);"
|
|
|
|
#Force close button
|
|
|
|
#Force close button
|
|
|
|
lOnClickForceCloseButton=f"mGlobal.Controller.CMDRunText('taskkill /F /im {lProcessName}');"
|
|
|
|
lOnClickForceCloseButton=f"mGlobal.Controller.CMDRunText('taskkill /F /im {lProcessName}');"
|
|
|
|
|
|
|
|
# # # # # Add recieve file activity
|
|
|
|
|
|
|
|
lTestRecieveActivityList = [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
"ModulePath": f"{os.path.join(lRobotRDPActiveFolderPath,'Defs_SessionIndex.py')}", # "Session\\SessionDefs.py"
|
|
|
|
|
|
|
|
"DefName":"FileStoredRecieve", # Function name
|
|
|
|
|
|
|
|
"ArgList":[], # Args list
|
|
|
|
|
|
|
|
"ArgDict":{"inSessionIndex": 0, "inHostFilePath": "testRecieve.txt","inRDPFilePath": "C:\\Temp\\testRecieve.txt"} # Args dictionary
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
lOnClickTestSendBaumanStr = f"mGlobal.Processor.ServerValueSet(['Storage','RobotRDPActive','OrchestratorToRobotResetStorage','ActivityList'],{json.dumps(lTestRecieveActivityList)});"
|
|
|
|
#Result template
|
|
|
|
#Result template
|
|
|
|
lResultDict={
|
|
|
|
lResultDict={
|
|
|
|
"HeaderLeftText":"Keep active RDP sessions",
|
|
|
|
"HeaderLeftText":"Keep active RDP sessions",
|
|
|
@ -63,7 +73,7 @@ def RenderRobotRDPActive(inGlobalConfiguration):
|
|
|
|
################################
|
|
|
|
################################
|
|
|
|
#Session state
|
|
|
|
#Session state
|
|
|
|
lItemSessionState='<span style=\"color:red\">Disconnected</span>'
|
|
|
|
lItemSessionState='<span style=\"color:red\">Disconnected</span>'
|
|
|
|
if lItem.get("SessionIsWindowExistBool",False):
|
|
|
|
if lItem.get("SessionIsWindowResponsibleBool",False):
|
|
|
|
lItemSessionState='<span style=\"color:green\">Connected</span>'
|
|
|
|
lItemSessionState='<span style=\"color:green\">Connected</span>'
|
|
|
|
lResultDict["BodyKeyValueList"].append({"Key":f"[{str(lRDPListIndex)}]{lLabelSessionFullScreen}{lLabelIsIgnored}{lItem.get('Host','localhost')}:{lItem.get('Port','--')}","Value":f"{lItem.get('Login','--')}, {lItem.get('SessionHex','--')}, State {lItemSessionState}, {lSetFullScreenA}, {lIgnoreIndexListLink}"})
|
|
|
|
lResultDict["BodyKeyValueList"].append({"Key":f"[{str(lRDPListIndex)}]{lLabelSessionFullScreen}{lLabelIsIgnored}{lItem.get('Host','localhost')}:{lItem.get('Port','--')}","Value":f"{lItem.get('Login','--')}, {lItem.get('SessionHex','--')}, State {lItemSessionState}, {lSetFullScreenA}, {lIgnoreIndexListLink}"})
|
|
|
|
lRDPListIndex = lRDPListIndex + 1
|
|
|
|
lRDPListIndex = lRDPListIndex + 1
|
|
|
|