How can I run a custom application, in this case something that would create a beep sound, when my WinXP wakes up from standby?

I tried already "Logon Script" from Computer Management / Local Users. That doesn't work, it only works when logging in, not when coming back from Standby. Also Startup folder doesn't work (same thing). Also couldn't find this possibility in Scheduled Tasks.

So I know how to make the beep sound, but how to run that when the computer wakes up from Standby?