Aye, the stupid spaces stumped me when I messed with the bank window previously. I'll look at it again. I suspect it'll be much easier now. Prety sure all that's needed is a button that sets Press=true for each slot
get_bag_label probably returns the player defined bag name (they call it a label in game). label_bag I assume sets the bag label.
I have not yet found a way to target specific bag windows or examine windows from other windows but we can activate slots