parent
e00eb589ac
commit
927bda7564
@ -1,4 +1,7 @@
|
||||
#Import parent folder to import current / other packages
|
||||
#########################################################
|
||||
import sys
|
||||
lFolderPath = "\\".join(__file__.split("\\")[:-2])
|
||||
sys.path.append(lFolderPath)
|
||||
from Studio import Studio
|
||||
lFolderPath = "\\".join(__file__.split("\\")[:-3])
|
||||
sys.path.insert(0, lFolderPath)
|
||||
#########################################################
|
||||
from pyOpenRPA.Studio import Studio
|
@ -0,0 +1,34 @@
|
||||
#Import parent folder to import current / other packages
|
||||
from pyOpenRPA.Robot import UIDesktop #Lib to access RDP window
|
||||
import os #os for process run
|
||||
import time
|
||||
#Connect to RDP session
|
||||
"""
|
||||
{
|
||||
"Host": "", #Host address
|
||||
"Port": "", #RDP Port
|
||||
"Login": "", # Login
|
||||
"Password": "", #Password
|
||||
"Screen": {
|
||||
"Resolution":"FullScreen", #"640x480" or "1680x1050" or "FullScreen". If Resolution not exists set full screen
|
||||
"FlagUseAllMonitors": False, # True or False
|
||||
"DepthBit":"" #"32" or "24" or "16" or "15"
|
||||
}
|
||||
}
|
||||
"""
|
||||
def SessionConnect(inRDPSessionConfiguration):
|
||||
#Run mstsc
|
||||
os.system("mstsc.exe")
|
||||
time.sleep(2)
|
||||
#Expand the parameter section
|
||||
UIDesktop.UIOSelector_Get_UIO(
|
||||
[
|
||||
{"title":"Подключение к удаленному рабочему столу","backend":"uia"},
|
||||
{"title":"Пара&метры >>"}
|
||||
]
|
||||
).click()
|
||||
#Set host:port
|
||||
|
||||
#Set user
|
||||
|
||||
#Select flag ask login/pass
|
@ -0,0 +1,6 @@
|
||||
#Robot RDPActive settings
|
||||
def Settings():
|
||||
mDict = {
|
||||
|
||||
}
|
||||
return mDict
|
@ -0,0 +1,19 @@
|
||||
#Import parent folder to import current / other packages
|
||||
#########################################################
|
||||
import sys
|
||||
lFolderPath = "\\".join(__file__.split("\\")[:-4])
|
||||
sys.path.insert(0, lFolderPath)
|
||||
#########################################################
|
||||
from pyOpenRPA.Tools.RobotRDPActive import RDPConnector
|
||||
mConfiguration={
|
||||
"Host": "93.159.239.226", #Host address
|
||||
"Port": "8525", #RDP Port
|
||||
"Login": "user22", # Login
|
||||
"Password": "Tak181418Bar", #Password
|
||||
"Screen": {
|
||||
"Resolution":"FullScreen", #"640x480" or "1680x1050" or "FullScreen". If Resolution not exists set full screen
|
||||
"FlagUseAllMonitors": False, # True or False
|
||||
"DepthBit":"" #"32" or "24" or "16" or "15"
|
||||
}
|
||||
}
|
||||
RDPConnector.SessionConnect(mConfiguration)
|
Loading…
Reference in new issue