Need Help for Stand alone Image viewer

Please read this: How to use buttons and scripts from this forum

In addition, you should select "Script event" from the drop-down menu.