View Full Version : Trying to get the names in a list

December 25th, 2019, 05:31
I’m having issues getting the values in a master index window list...
I have the windowinstance, and I believe the list path is simply .list for the master index windowclass...

But how do I get the names in the list displayed?

I’ve tried getChildren, getValue of the windowlist

I’ve tried a number of methods... I know it’s probably something easy... I’m just tired... but I would appreciate any assistance if possible.

Moon Wizard
December 25th, 2019, 05:49
Perhaps you could give some background on what you’re doing?

Most code that iterates over all records in a campaign list actually iterates through the database records as supplied by LibraryData.getMappings call in CoreRPG. There are several examples in 5E ruleset.


December 25th, 2019, 15:25
Perhaps you could give some background on what you’re doing?

I am trying to sort through the list in the spells window to check for a couple spells loaded from my module.

Just adding in automation for a few things... but I need to get the list values... even if the links listed are to the database nodes, I could derive the names easily... I just need to figure out how to get the list values...

Would windowlist.getWindows(true); work?

wondowlist being the control

Hoping that would get a list of the available links, that are currently being displayed, which could be thrown into a ‘for do’ loop and split to sClass, sRecord and then I can get the info from there...

Any input is appreciated

December 25th, 2019, 17:22
Yup... that works!... thanks!