Introduction - If you have any usage issues, please Google them yourself
control of the notebook open button available/not available, the principle is : Use window enumeration method checks the notebook and then get menu, the corresponding menu greyed