Python Forum
To access already running remote desktop application using pywinauto
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
To access already running remote desktop application using pywinauto
#1
Hi ,
Greetings!!!
I am new to python and pywinauto. I learnt that pywinauto can access already running application hence i would like to know solution on following problem statement

Problem statement: To access WinScp, we use CyberArk and then WinScp tool runs on remote desktop application. I would like to access this WinScp which is running via remote desktop connection using pywinauto to perform certain actions and take screenshots.

I would like to know whether it is possible to access already running Remote desktop application (WinScp) using pywinauto or not?
If yes then may i know example of coding pertaining to this problem statement?

Kindly support.

Regards,
Vyom
Reply
#2
I don't think pywinauto can find windows that are running on a remote desktop, but you might be able to do this using pywinauto in conjunction with remote python calls (RPyC). On the remote machine you would run a script that uses pywinauto to talk to CyberArc and WinScp (I know nothing about either of these tools), and on the local machine you would use RPyC to talk to that script.

But before jumping to conclusions, have you tried anything? I would start really simple, like this:
from pywinauto import Desktop

windows = Desktop(backend="uia").windows()
print([w.window_text() for w in windows])
You'll see your remote desktop window, but does it list anything that is running on the remote desktop?

Running on a remote desktop is discussed in the pywinauto documentation, but there is no provides solution. Read what they have here:

https://pywinauto.readthedocs.io/en/late...ution.html
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Question [PyQt] Application desktop toolbar with PyQt6 bunz 4 2,810 Mar-09-2023, 08:09 PM
Last Post: bunz
  [PyQt] Linux - Application translation not load when run from .desktop launcher dancaer69 2 3,356 May-19-2019, 06:01 PM
Last Post: dancaer69
  video player inside a frame/panel in python raspberry pi desktop application MATHEWS 1 3,469 Dec-12-2018, 11:42 AM
Last Post: Larz60+
  [Tkinter] Access a remote server with ssh artech7 6 8,330 Sep-21-2018, 04:53 PM
Last Post: Barrowman
  Need help for validation test with Python/ PyWinAuto FaisalHossain 0 2,392 Aug-28-2018, 05:38 PM
Last Post: FaisalHossain

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020