If you create a button and give method name as CopyScript then change it to EventMethodCopyScript it will automatically enable the button. But you need to change the method name at BC level too. So at BC Level the scripting will change to
if(MethodName == “EventMethodCopyScript”)
Enjoy!