|
|
@ -25,11 +25,26 @@ def SessionConnect(inRDPSessionConfiguration):
|
|
|
|
UIDesktop.UIOSelector_Get_UIO(
|
|
|
|
UIDesktop.UIOSelector_Get_UIO(
|
|
|
|
[
|
|
|
|
[
|
|
|
|
{"process": lProcessId, "backend": "uia"},
|
|
|
|
{"process": lProcessId, "backend": "uia"},
|
|
|
|
{"title": "Пара&метры >>"}
|
|
|
|
{"class_name": "ToolbarWindow32"},
|
|
|
|
]
|
|
|
|
{"title": "Показать параметры ", "control_type": "Button"}]
|
|
|
|
).click()
|
|
|
|
).click()
|
|
|
|
|
|
|
|
#Select flag ask login/pass
|
|
|
|
|
|
|
|
UIDesktop.UIOSelector_Get_UIO(
|
|
|
|
|
|
|
|
[
|
|
|
|
|
|
|
|
{"process": lProcessId, "backend": "win32"},
|
|
|
|
|
|
|
|
{"title":"Общие"},
|
|
|
|
|
|
|
|
{"title":"Учетные данные"},
|
|
|
|
|
|
|
|
{"title":"&Всегда запрашивать учетные данные", "class_name":"Button"}]
|
|
|
|
|
|
|
|
).check()
|
|
|
|
#Set host:port
|
|
|
|
#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
|
|
|
|
#Set user
|
|
|
|
|
|
|
|
|
|
|
|
#Select flag ask login/pass
|
|
|
|
|
|
|
|