For this you'd need to handle it with a global event and catch that publish action. You can take a look at the API documentation and other documentation in the Older Documentation section of the Devnet to get what you're looking for. Since this version is no longer supported and nearly 8 years or more old, it's not easy to come up with a full code solution.