Python Shell始终在顶部运行选项

Python Shell始终在顶部运行选项,python,wsh,Python,Wsh,我想使用Run执行WScript.Shell命令,并将其设置为始终位于顶部。到目前为止,我已经知道如何使弹出窗口始终位于顶部 import win32api, win32com.client shell = win32com.client.Dispatch('WScript.Shell') shell.Popup('Message', 0, 'Title', 4096) win32api.Sleep(100) 有没有办法用Run命令做同样的事情?我在MS站点上找到了一些属性,但没有一个给我这

我想使用Run执行WScript.Shell命令,并将其设置为始终位于顶部。到目前为止,我已经知道如何使弹出窗口始终位于顶部

import win32api, win32com.client

shell = win32com.client.Dispatch('WScript.Shell')
shell.Popup('Message', 0, 'Title', 4096)
win32api.Sleep(100)

有没有办法用Run命令做同样的事情?我在MS站点上找到了一些属性,但没有一个给我这个选项。

这不能用这种方式完成。我安装了little实用程序,并获得了始终在线的功能

strCommand = "wscript Test.vbs"

jobProcess = subprocess.Popen(strCommand, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=True)

stdout, stderr = jobProcess.communicate()