I once wanted to update that script more to what your screenshot looks like but that project got suspended/forgotten
But with my MsgLoopHandler: an event driven wrapper for the Dopus message loop as include script it should become easier (at least ui handling). Maybe when i find the time and motivation, but someone asked for that feature some time ago