How to get window's name
pmazzoni
1. Is there a way to obtain the name of the topwindow? I have a set of graphs with assigned names and I’d like to save each one using the window’s name as the filename. I have used
getWindow kwTopWin, wtitle
to get the window’s title, but in some cases this is not the same as the window's name and I need the name. Is there a command like
getWindow kwTopWin, wname
?
2. Is there a way to check whether the top window is a graph?
Thanks in advance.
Pietro
WinList
command. It returns the names of the windows from front to back.In order to test whether the topmost window is a graph, you could compare the the first item in the result lists corresponding to all windows and solely to graph windows
vs
HJ
March 6, 2018 at 11:19 pm - Permalink
Pietro
March 7, 2018 at 09:57 am - Permalink
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
March 7, 2018 at 02:15 pm - Permalink
Pietro
March 8, 2018 at 10:15 pm - Permalink