[proFit-list] want to cycle through all windows and perform an action on the data windows

Dave glasspusher at outofoptions.net
Thu Jan 5 13:40:50 CST 2023


Hi folks,
	
Happy new year to all. 

I have a Python script that does some calculations on a data window, and would like to have it act on all data windows that are open. 

I was thinking of iterating through all windows (pf.NextWindow), checking if it was a data window, if so, running the script, but…

…I don’t see where I can query a window as to if it’s a data window or not

pf.FrontmostWindow(type) is as close as I see to finding out if a window is a data window, but how do I find out what types all windows are without moving them from the back?

Maybe I’m missing something. 

Any help is appreciated 

Dave




More information about the proFit-list mailing list