parent
3d3e504a9a
commit
78a97d1051
@ -0,0 +1,10 @@
|
|||||||
|
from pyOpenRPA.Robot import UIDesktop
|
||||||
|
#Check for session is closed
|
||||||
|
def Monitor(inGlobalDict, inListUpdateTimeout):
|
||||||
|
lUIOSelectorList=[]
|
||||||
|
for lItem in inGlobalDict["RDPList"]:
|
||||||
|
lUIOSelectorList.append([{"title_re": f"{lItem['SessionHex']} — .*", "backend": "win32"}])
|
||||||
|
while True:
|
||||||
|
lRDPDissappearList = UIDesktop.UIOSelectorsSecs_WaitDisappear_List(lUIOSelectorList, inListUpdateTimeout)
|
||||||
|
for lItem in lRDPDissappearList:
|
||||||
|
#Session start
|
@ -1,6 +1,21 @@
|
|||||||
#Robot RDPActive settings
|
#Robot RDPActive settings
|
||||||
def Settings():
|
def Settings():
|
||||||
mDict = {
|
mDict = {
|
||||||
|
"RDPList":
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"Host": "77.77.22.22", # Host address
|
||||||
|
"Port": "7777", # RDP Port
|
||||||
|
"Login": "test", # Login
|
||||||
|
"Password": "test", # Password
|
||||||
|
"Screen": {
|
||||||
|
"Resolution": "FullScreen",
|
||||||
|
# "640x480" or "1680x1050" or "FullScreen". If Resolution not exists set full screen
|
||||||
|
"FlagUseAllMonitors": False, # True or False
|
||||||
|
"DepthBit": "32" # "32" or "24" or "16" or "15"
|
||||||
|
},
|
||||||
|
"SessionHex":"" # Hex is created when robot runs
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
return mDict
|
return mDict
|
Binary file not shown.
@ -0,0 +1,3 @@
|
|||||||
|
cd %~dp0..\..\Sources
|
||||||
|
..\Resources\WPy64-3720\python-3.7.2.amd64\python.exe -m pyOpenRPA.Tools.RobotRDPActive "C:\Abs\Archive\scopeSrcUL\OpenRPA_Creds\RobotRDPActive\SettingsRusmed.py"
|
||||||
|
pause >nul
|
Loading…
Reference in new issue