lRDPConfigurationItem={# Init the configuration item
"Host":inHostStr,# Host address, example "77.77.22.22"
"Port":inPortStr,# RDP Port, example "3389"
"Login":inLoginStr,# Login, example "test"
"Password":inPasswordStr,# Password, example "test"
"Screen":{
"Width":1680,# Width of the remote desktop in pixels, example 1680
"Height":1050,# Height of the remote desktop in pixels, example 1050
# "640x480" or "1680x1050" or "FullScreen". If Resolution not exists set full screen, example
"FlagUseAllMonitors":False,# True or False, example False
"DepthBit":"32"# "32" or "24" or "16" or "15", example "32"
},
"SharedDriveList":["c"],# List of the Root sesion hard drives, example ["c"]
###### Will updated in program ############
"SessionHex":"77777sdfsdf77777dsfdfsf77777777",# Hex is created when robot runs, example ""
"SessionIsWindowExistBool":False,# Flag if the RDP window is exist, old name "FlagSessionIsActive". Check every n seconds , example False
"SessionIsWindowResponsibleBool":False,# Flag if RDP window is responsible (recieve commands). Check every nn seconds. If window is Responsible - window is Exist too , example False
"SessionIsIgnoredBool":False# Flag to ignore RDP window False - dont ignore, True - ignore, example False
}
gSettings["RobotRDPActive"]["RDPList"][inRDPSessionKeyStr]=lRDPConfigurationItem# Add item in RDPList
Connector.Session(lRDPConfigurationItem)# Create the RDP session
Connector.SystemRDPWarningClickOk()# Click all warning messages
# ATTENTION - dont connect if RDP session is exist
lRDPConfigurationItem={# Init the configuration item
"Host":inHostStr,# Host address, example "77.77.22.22"
"Port":inPortStr,# RDP Port, example "3389"
"Login":inLoginStr,# Login, example "test"
"Password":inPasswordStr,# Password, example "test"
"Screen":{
"Width":1680,# Width of the remote desktop in pixels, example 1680
"Height":1050,# Height of the remote desktop in pixels, example 1050
# "640x480" or "1680x1050" or "FullScreen". If Resolution not exists set full screen, example
"FlagUseAllMonitors":False,# True or False, example False
"DepthBit":"32"# "32" or "24" or "16" or "15", example "32"
},
"SharedDriveList":["c"],# List of the Root sesion hard drives, example ["c"]
###### Will updated in program ############
"SessionHex":"77777sdfsdf77777dsfdfsf77777777",# Hex is created when robot runs, example ""
"SessionIsWindowExistBool":False,# Flag if the RDP window is exist, old name "FlagSessionIsActive". Check every n seconds , example False
"SessionIsWindowResponsibleBool":False,# Flag if RDP window is responsible (recieve commands). Check every nn seconds. If window is Responsible - window is Exist too , example False
"SessionIsIgnoredBool":False# Flag to ignore RDP window False - dont ignore, True - ignore, example False
}
gSettings["RobotRDPActive"]["RDPList"][inRDPSessionKeyStr]=lRDPConfigurationItem# Add item in RDPList
Connector.Session(lRDPConfigurationItem)# Create the RDP session
Connector.SystemRDPWarningClickOk()# Click all warning messages
lRDPConfigurationItem={# Init the configuration item
"Host":inHostStr,# Host address, example "77.77.22.22"
"Port":inPortStr,# RDP Port, example "3389"
"Login":inLoginStr,# Login, example "test"
"Password":inPasswordStr,# Password, example "test"
"Screen":{
"Width":1680,# Width of the remote desktop in pixels, example 1680
"Height":1050,# Height of the remote desktop in pixels, example 1050
# "640x480" or "1680x1050" or "FullScreen". If Resolution not exists set full screen, example
"FlagUseAllMonitors":False,# True or False, example False
"DepthBit":"32"# "32" or "24" or "16" or "15", example "32"
},
"SharedDriveList":["c"],# List of the Root sesion hard drives, example ["c"]
###### Will updated in program ############
"SessionHex":"77777sdfsdf77777dsfdfsf77777777",# Hex is created when robot runs, example ""
"SessionIsWindowExistBool":False,# Flag if the RDP window is exist, old name "FlagSessionIsActive". Check every n seconds , example False
"SessionIsWindowResponsibleBool":False,# Flag if RDP window is responsible (recieve commands). Check every nn seconds. If window is Responsible - window is Exist too , example False
"SessionIsIgnoredBool":False# Flag to ignore RDP window False - dont ignore, True - ignore, example False
}
gSettings["RobotRDPActive"]["RDPList"][inRDPSessionKeyStr]=lRDPConfigurationItem# Add item in RDPList
Connector.Session(lRDPConfigurationItem)# Create the RDP session
Connector.SystemRDPWarningClickOk()# Click all warning messages
# ATTENTION - dont connect if RDP session is exist
lRDPConfigurationItem={# Init the configuration item
"Host":inHostStr,# Host address, example "77.77.22.22"
"Port":inPortStr,# RDP Port, example "3389"
"Login":inLoginStr,# Login, example "test"
"Password":inPasswordStr,# Password, example "test"
"Screen":{
"Width":1680,# Width of the remote desktop in pixels, example 1680
"Height":1050,# Height of the remote desktop in pixels, example 1050
# "640x480" or "1680x1050" or "FullScreen". If Resolution not exists set full screen, example
"FlagUseAllMonitors":False,# True or False, example False
"DepthBit":"32"# "32" or "24" or "16" or "15", example "32"
},
"SharedDriveList":["c"],# List of the Root sesion hard drives, example ["c"]
###### Will updated in program ############
"SessionHex":"77777sdfsdf77777dsfdfsf77777777",# Hex is created when robot runs, example ""
"SessionIsWindowExistBool":False,# Flag if the RDP window is exist, old name "FlagSessionIsActive". Check every n seconds , example False
"SessionIsWindowResponsibleBool":False,# Flag if RDP window is responsible (recieve commands). Check every nn seconds. If window is Responsible - window is Exist too , example False
"SessionIsIgnoredBool":False# Flag to ignore RDP window False - dont ignore, True - ignore, example False
}
gSettings["RobotRDPActive"]["RDPList"][inRDPSessionKeyStr]=lRDPConfigurationItem# Add item in RDPList
Connector.Session(lRDPConfigurationItem)# Create the RDP session
Connector.SystemRDPWarningClickOk()# Click all warning messages