admin管理员组文章数量:1315774
Apparently the "Window" menu cannot be accessed directly by scripts. The following code return a null script object:
Object objMB = GetMenuBar();
Object objWindowMenu = objMB.FindMenuItemByName("Window");
OKDialog( "\"Window\" menu object is valid?\n\n" + \
(objWindowMenu.ScriptObjectIsValid()? "Yes" : "No") );
What I'm trying to do is to install my script as menu item under "Windows" menu and at the position before the "Floating Windows" sub menu.
Is there a way to work around this?
Apparently the "Window" menu cannot be accessed directly by scripts. The following code return a null script object:
Object objMB = GetMenuBar();
Object objWindowMenu = objMB.FindMenuItemByName("Window");
OKDialog( "\"Window\" menu object is valid?\n\n" + \
(objWindowMenu.ScriptObjectIsValid()? "Yes" : "No") );
What I'm trying to do is to install my script as menu item under "Windows" menu and at the position before the "Floating Windows" sub menu.
Is there a way to work around this?
Share Improve this question asked Jan 30 at 0:04 KEVIVIKEVIVI 921 silver badge8 bronze badges1 Answer
Reset to default 3No there isn't. Menu entries from the core application will always sit on top.
本文标签:
版权声明:本文标题:Install script object in "Window" menu as first menu item (before "Floating Windows") - Stac 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741991754a2409244.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论