【问题标题】:Create remote control desktop with python用python创建远程控制桌面
【发布时间】:2018-08-20 08:22:54
【问题描述】:

我正在尝试用 python 创建一个程序, 我编写了允许一台计算机连接另一台计算机的代码, 不知道怎么才能看到其他电脑桌面并控制它正在运行的程序

ip = "127.0.0.1"
    username = ""#"username"
    password = ""#"password"

    try:
        print ("Establishing connection to %s" %ip)
        connection = wmi.WMI(ip, user=username, password=password)
        connection.Win32_Process.Create(CommandLine="notepad.exe /c text.txt")
        print ("Connection established")
    except wmi.x_wmi:
        print ("Your Username and Password of "+getfqdn(ip)+" are wrong.")

【问题讨论】:

    标签: python python-3.x python-2.7 remote-control


    【解决方案1】:

    要查看屏幕,您需要使用不同的协议。我推荐 RDP,因为它已经安装在 Windows 计算机上。您可以使用rdpy 模块来执行此操作。

    至于查看正在运行的程序,可能有一些方法可以列出当前正在运行的进程,但我也找不到。

    【讨论】:

      猜你喜欢
      • 2011-02-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-01-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多