This looks like something I could start on with... it will probably solve the /getentry value thing.
But still I dont know what sections are available. In your code snippet section is fixed.

How can I get the available sections from a given file. That would be what I meant with /getsection command above.
confused