I wonder if there is a possibility to write a Python/Syntax script that would automatically creating my own menu instead of using the menu editor.
I'll be grateful for any help.
This topic has been locked.
2 replies Latest Post - 2011-05-25T22:08:29Z by eldomino
Pinned topic Adding menu position from script
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2011-05-25T22:08:29Z at 2011-05-25T22:08:29Z by eldomino
SystemAdmin 110000D4XK1106 PostsACCEPTED ANSWER
Re: Adding menu position from script2011-05-04T14:52:48Z in response to eldominoYou can, of course, create your own dialogs and add them to the menu system using the Custom Dialog Builder. If you have built a custom dialog, you can add it to the menu tree just be copying the component files to a certain location. That is normally under ext\lib under your Statistics installation, but users can set an environment variable to point elsewhere.
The Menu Editor does not have apis that expose its functionality, but it is all done (on Windows) by creating Registry entries. Create an item manually and look in the Registry to see what these look like.
for example, for V19 entries.
You can then use scripting code to manipulate the Registry. But be careful, as always, since messing with the Registry can mess up your system.