|
|
|
@ -17,6 +17,16 @@ def RenderRobotRDPActive(inGlobalConfiguration):
|
|
|
|
|
lOnClickSafeTurnOff = "mGlobal.Processor.ServerValueSet(['Storage','RobotRDPActive','OrchestratorToRobotResetStorage','SafeTurnOff'],true);"
|
|
|
|
|
#Force close button
|
|
|
|
|
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
|
|
|
|
|
lResultDict={
|
|
|
|
|
"HeaderLeftText":"Keep active RDP sessions",
|
|
|
|
@ -63,7 +73,7 @@ def RenderRobotRDPActive(inGlobalConfiguration):
|
|
|
|
|
################################
|
|
|
|
|
#Session state
|
|
|
|
|
lItemSessionState='<span style=\"color:red\">Disconnected</span>'
|
|
|
|
|
if lItem.get("SessionIsWindowExistBool",False):
|
|
|
|
|
if lItem.get("SessionIsWindowResponsibleBool",False):
|
|
|
|
|
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}"})
|
|
|
|
|
lRDPListIndex = lRDPListIndex + 1
|
|
|
|
|