Macros and buttons (SOLVED)

Following HTML Executable Demonstration I tried to add opening notepad.exe to my book but could not make it work. The demo worked fine though and opened notepad. This is the html code I added to my page:

In User Scripting/Macros I added:

procedure MacroOpenFile(filename, param: String);
OpenFile(ReplaceString(filename, “%20”, " "), param, SW_SHOWNORMAL);

I also tried “Click this button to open your default mail client” and could not make this work either, but your demo works fine. I’m obviously missing something, can you help please?

OnClick=“HESCRIPT://MACROS.MacroOpenFile|notepad.exe|”> will not work in an IE publication type.

Thanks for the code, that solved the problem.