我想知道通过tcl编码检索窗口中所有可用pid的方法。这是我需要基于它是否可用而杀死进程? 感谢你。 code:如何检索tcl窗口中所有可用的PID?
proc stopprogressbar {} {
variable n_progressWinPid;
if {[info exists n_progressWinPid]} {
if {$n_progressWinPid > 0} {
if {[lsearch [GETALLPIDS] $n_progressWinPid] >= 0} {
catch {exec [auto_execok taskkill] /PID $n_progressWinPid}
}
}
}
}
是的...这就是我正在寻找..而我使用了相同的包。 – OliveOne