Page 2 of 2

Re: Element Names changing within Window screens

Posted: Thu Jun 21, 2018 6:05 pm
by Scott Klement
I am not familiar with your screens. My approach would be to look for a string or value that might uniquely identify a particular screen... for example, if get('D_10_12_W2') == 'Something', then I might know that window 2 is the one that I want. This could be done in a loop, for example, looping from 1-10 and checking if Wx has the string I want. Once I'd determined the right window level, I could use that number for the rest of it.

But, again, i'm not familiar with your screens, so I don't know if that idea works or not.

Re: Element Names changing within Window screens

Posted: Fri Jun 22, 2018 8:11 am
by PaulT
I see what you are saying. I was hoping there might be a variable available at the document level to tell whether we were at W1, W2, Wn. But I can make this work based on your example.