On Sat, 01 Feb 2014 17:00:13 GMT, Mike Wey wrote:

I'll need to check whats going on with getToplevels/GetUI.

You'll need to call ensureUpdate before using getToplevels.