“menu @%win {“ and the other uses of @%win are wrong. Normally if I have a custom window named dirlog I’d use “menu @dirlog {“, I guess if you have a global variable %win set to @dirlog you could use “menu %win {“