|
|
|
@ -24,12 +24,27 @@ def SessionConnect(inRDPSessionConfiguration):
|
|
|
|
|
#Expand the parameter section
|
|
|
|
|
UIDesktop.UIOSelector_Get_UIO(
|
|
|
|
|
[
|
|
|
|
|
{"process": lProcessId,"backend":"uia"},
|
|
|
|
|
{"title": "Пара&метры >>"}
|
|
|
|
|
]
|
|
|
|
|
{"process": lProcessId, "backend": "uia"},
|
|
|
|
|
{"class_name": "ToolbarWindow32"},
|
|
|
|
|
{"title": "Показать параметры ", "control_type": "Button"}]
|
|
|
|
|
).click()
|
|
|
|
|
#Select flag ask login/pass
|
|
|
|
|
UIDesktop.UIOSelector_Get_UIO(
|
|
|
|
|
[
|
|
|
|
|
{"process": lProcessId, "backend": "win32"},
|
|
|
|
|
{"title":"Общие"},
|
|
|
|
|
{"title":"Учетные данные"},
|
|
|
|
|
{"title":"&Всегда запрашивать учетные данные", "class_name":"Button"}]
|
|
|
|
|
).check()
|
|
|
|
|
#Set host:port
|
|
|
|
|
|
|
|
|
|
lHostPort=inRDPSessionConfiguration['host']
|
|
|
|
|
if 'port' in inRDPSessionConfiguration:
|
|
|
|
|
lHostPort=f"{lHostPort}:{inRDPSessionConfiguration['port']}"
|
|
|
|
|
UIDesktop.UIOSelector_Get_UIO(
|
|
|
|
|
[
|
|
|
|
|
{"process": lProcessId, "backend": "uia"},
|
|
|
|
|
{"title": "Компьютер:"},
|
|
|
|
|
{"title": "Компьютер:", "control_type": "Edit"}]
|
|
|
|
|
).set_text(f"{lHostPort}")
|
|
|
|
|
#Set user
|
|
|
|
|
|
|
|
|
|
#Select flag ask login/pass
|
|
|
|
|