|
|
@ -87,21 +87,23 @@ def RobotRDPActive(inGSettings, inThreadControlDict):
|
|
|
|
lRDPSessionKeyStr = inGlobalDict["FullScreenRDPSessionKeyStr"] # Get the RDPSessionKeyStr
|
|
|
|
lRDPSessionKeyStr = inGlobalDict["FullScreenRDPSessionKeyStr"] # Get the RDPSessionKeyStr
|
|
|
|
if lRDPSessionKeyStr in inGlobalDict["RDPList"]: # Session Key is in dict
|
|
|
|
if lRDPSessionKeyStr in inGlobalDict["RDPList"]: # Session Key is in dict
|
|
|
|
lRDPConfigurationDict = inGlobalDict["RDPList"][lRDPSessionKeyStr]
|
|
|
|
lRDPConfigurationDict = inGlobalDict["RDPList"][lRDPSessionKeyStr]
|
|
|
|
#if not lRDPConfigurationDict["SessionIsIgnoredBool"]: # Session is not ignored
|
|
|
|
# SET FULL SCREEN ONLY IF NOT IGNORED
|
|
|
|
# Check if full screen
|
|
|
|
if not lRDPConfigurationDict["SessionIsIgnoredBool"]:
|
|
|
|
lIsFullScreenBool = Connector.SessionIsFullScreen(inSessionHexStr=lRDPConfigurationDict["SessionHex"])
|
|
|
|
#if not lRDPConfigurationDict["SessionIsIgnoredBool"]: # Session is not ignored
|
|
|
|
if not lIsFullScreenBool: # If not the full screen
|
|
|
|
# Check if full screen
|
|
|
|
# Check all RDP window and minimize it
|
|
|
|
lIsFullScreenBool = Connector.SessionIsFullScreen(inSessionHexStr=lRDPConfigurationDict["SessionHex"])
|
|
|
|
for lRDPSessionKeyStrItem in inGlobalDict["RDPList"]:
|
|
|
|
if not lIsFullScreenBool: # If not the full screen
|
|
|
|
lRDPConfigurationDictItem = inGlobalDict["RDPList"][lRDPSessionKeyStrItem]
|
|
|
|
# Check all RDP window and minimize it
|
|
|
|
if Connector.SessionIsFullScreen(inSessionHexStr=lRDPConfigurationDictItem["SessionHex"]):
|
|
|
|
for lRDPSessionKeyStrItem in inGlobalDict["RDPList"]:
|
|
|
|
if inThreadControlDict["ThreadExecuteBool"] == True: # TEST FEATURE BEFORE ONE THREAD INTEGRATION
|
|
|
|
lRDPConfigurationDictItem = inGlobalDict["RDPList"][lRDPSessionKeyStrItem]
|
|
|
|
Connector.SessionScreenSize_X_Y_W_H(inSessionHex=lRDPConfigurationDictItem["SessionHex"], inXInt=10, inYInt=10,
|
|
|
|
if Connector.SessionIsFullScreen(inSessionHexStr=lRDPConfigurationDictItem["SessionHex"]):
|
|
|
|
inWInt=550,
|
|
|
|
if inThreadControlDict["ThreadExecuteBool"] == True: # TEST FEATURE BEFORE ONE THREAD INTEGRATION
|
|
|
|
inHInt=350) # Prepare little window
|
|
|
|
Connector.SessionScreenSize_X_Y_W_H(inSessionHex=lRDPConfigurationDictItem["SessionHex"], inXInt=10, inYInt=10,
|
|
|
|
# Set full screen for new window
|
|
|
|
inWInt=550,
|
|
|
|
if inThreadControlDict["ThreadExecuteBool"] == True: # TEST FEATURE BEFORE ONE THREAD INTEGRATION
|
|
|
|
inHInt=350) # Prepare little window
|
|
|
|
Connector.SessionScreenFull(inSessionHex=lRDPConfigurationDict["SessionHex"], inLogger= inGSettings["Logger"], inRDPConfigurationItem=inGlobalDict["RDPList"][lRDPSessionKeyStrItem])
|
|
|
|
# Set full screen for new window
|
|
|
|
|
|
|
|
if inThreadControlDict["ThreadExecuteBool"] == True: # TEST FEATURE BEFORE ONE THREAD INTEGRATION
|
|
|
|
|
|
|
|
Connector.SessionScreenFull(inSessionHex=lRDPConfigurationDict["SessionHex"], inLogger= inGSettings["Logger"], inRDPConfigurationItem=inGlobalDict["RDPList"][lRDPSessionKeyStrItem])
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
# Check all RDP window and minimize it
|
|
|
|
# Check all RDP window and minimize it
|
|
|
|
for lRDPSessionKeyStrItem in inGlobalDict["RDPList"]:
|
|
|
|
for lRDPSessionKeyStrItem in inGlobalDict["RDPList"]:
|
|
|
|