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