MUSHclient's existing menus house quite a large array of functionality. But I do thing it would be very convenient if it were possible to programmatically add new items to the menu.
This would allow script authors to create 'plugins'. For example, Magnus recently requested a feature which would allow exporting triggers and aliases to a file. It would not be very difficult to create some script code which would generate such a thing.
All that's missing is a way to add it to the menus. The command would need parameters to indicate what parent item the new item is attached to, and what the 'shortcut key' would be, and what script subroutine would be called.
While we're at it, it would be nice if there was a way to keep script plugins separate from each other, but still available to MUSHclient. What about a Plugins directory, whose contents are executed at MUSHclient startup? Then users would simply need to download a file, drop it in the Plugins Directory, and refresh/restart MUSHclient to benefit from code others create. No more tedious editing of each world's script file.
Additionally, if the script files in the Plugins directory all shared the same scope when executed, they could easily serve as 'include files', defining common code and variables which are used across all your world script files.
This would allow script authors to create 'plugins'. For example, Magnus recently requested a feature which would allow exporting triggers and aliases to a file. It would not be very difficult to create some script code which would generate such a thing.
All that's missing is a way to add it to the menus. The command would need parameters to indicate what parent item the new item is attached to, and what the 'shortcut key' would be, and what script subroutine would be called.
While we're at it, it would be nice if there was a way to keep script plugins separate from each other, but still available to MUSHclient. What about a Plugins directory, whose contents are executed at MUSHclient startup? Then users would simply need to download a file, drop it in the Plugins Directory, and refresh/restart MUSHclient to benefit from code others create. No more tedious editing of each world's script file.
Additionally, if the script files in the Plugins directory all shared the same scope when executed, they could easily serve as 'include files', defining common code and variables which are used across all your world script files.