|
|
@ -5,7 +5,8 @@ from . import ConnectorExceptions # Exceptions classes
|
|
|
|
from . import Connector
|
|
|
|
from . import Connector
|
|
|
|
from . import Processor # Module for process some functions on thr RDP
|
|
|
|
from . import Processor # Module for process some functions on thr RDP
|
|
|
|
# Main function
|
|
|
|
# Main function
|
|
|
|
def RobotRDPActive(inGSettings):
|
|
|
|
# inThreadControlDict = {"ThreadExecuteBool":True}
|
|
|
|
|
|
|
|
def RobotRDPActive(inGSettings, inThreadControlDict):
|
|
|
|
# inGSettings = {
|
|
|
|
# inGSettings = {
|
|
|
|
# ... "RobotRDPActive": {} ...
|
|
|
|
# ... "RobotRDPActive": {} ...
|
|
|
|
# }
|
|
|
|
# }
|
|
|
@ -36,6 +37,7 @@ def RobotRDPActive(inGSettings):
|
|
|
|
lResponsibilityCheckLastSec = time.time() # Get current time for check interval
|
|
|
|
lResponsibilityCheckLastSec = time.time() # Get current time for check interval
|
|
|
|
while lFlagWhile:
|
|
|
|
while lFlagWhile:
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
|
|
|
|
if inThreadControlDict["ThreadExecuteBool"] == True:
|
|
|
|
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
|
|
|
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
|
|
|
# Check RDP window is OK - reconnect if connection was lost
|
|
|
|
# Check RDP window is OK - reconnect if connection was lost
|
|
|
|
lUIOSelectorList = []
|
|
|
|
lUIOSelectorList = []
|
|
|
@ -65,19 +67,6 @@ def RobotRDPActive(inGSettings):
|
|
|
|
if lL: lL.exception(f"!!! ATTENTION !!! Unrecognized error") #Logging
|
|
|
|
if lL: lL.exception(f"!!! ATTENTION !!! Unrecognized error") #Logging
|
|
|
|
pass
|
|
|
|
pass
|
|
|
|
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
|
|
|
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
|
|
|
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
|
|
|
|
|
|
|
# Safe turn off the - no need because of Orchestrator control
|
|
|
|
|
|
|
|
#if inGlobalDict.get("OrchestratorToRobotResetStorage", {}).get("SafeTurnOff", False):
|
|
|
|
|
|
|
|
# lFlagWhile = False
|
|
|
|
|
|
|
|
# # Set status disconnected for all RDP List
|
|
|
|
|
|
|
|
# for lItem in inGlobalDict["RDPList"]:
|
|
|
|
|
|
|
|
# lItem["SessionIsWindowExistBool"] = False
|
|
|
|
|
|
|
|
# lItem["SessionIsWindowResponsibleBool"] = False
|
|
|
|
|
|
|
|
# # Kill all RDP sessions
|
|
|
|
|
|
|
|
# os.system('taskkill /F /im mstsc.exe')
|
|
|
|
|
|
|
|
# # Return from function
|
|
|
|
|
|
|
|
# return
|
|
|
|
|
|
|
|
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
|
|
|
|
|
|
|
Connector.SystemRDPWarningClickOk() # Click all warning messages
|
|
|
|
Connector.SystemRDPWarningClickOk() # Click all warning messages
|
|
|
|
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
|
|
|
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
|
|
|
# Check if RDP session is full screen (if is not ignored)
|
|
|
|
# Check if RDP session is full screen (if is not ignored)
|
|
|
|