|
|
|
@ -11,6 +11,8 @@ gSettings = None # Gsettings will be initialized after the import module
|
|
|
|
|
# Create new RDPSession in RobotRDPActive
|
|
|
|
|
def RDPSessionConnect(inRDPSessionKeyStr, inHostStr, inPortStr, inLoginStr, inPasswordStr):
|
|
|
|
|
global gSettings
|
|
|
|
|
# ATTENTION - dont connect if RDP session is exist
|
|
|
|
|
if inRDPSessionKeyStr not in gSettings["RobotRDPActive"]["RDPList"]:
|
|
|
|
|
lRDPConfigurationItem = { # Init the configuration item
|
|
|
|
|
"Host": inHostStr, # Host address, example "77.77.22.22"
|
|
|
|
|
"Port": inPortStr, # RDP Port, example "3389"
|
|
|
|
|