in reply to Win32::GUI problem

It's been quite a while since I've used Win32::GUI and you're trying to do something that I have not tried doing before. Looking at the common events documentation for the Win32::GUI module, here's a few untested ideas: