最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Install script object in "Window" menu as first menu item (before "Floating Windows") - Stac

programmeradmin1浏览0评论

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 badges
Add a comment  | 

1 Answer 1

Reset to default 3

No there isn't. Menu entries from the core application will always sit on top.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论