HTML Help template problem

Hello everyone.
I am using HTML Help template in Clarion6.2
After pressing the F1 key, the help window opens with the specified chm file.
How to capture the moment of opening this window and prevent it from opening?
Thank you for your tips.