WriteToFile not working?

whenever i click a button of WriteToFile to save it just saves with “#end” in the file. How do I make it work?

What is this WriteToFile? I don’t see any fvwm3 command that does that.

Edit: Opps, I missed this was FvwmScript. Can you share the full script you are having troubles with.