Modified version of Max's Scripts menu
 1-5  6-25  26-31

Previous
Next
 From:  大道刀 (SUIYAN)
10353.26 In reply to 10353.24 
HI Larry Fahnoe
IS GREAT
语言显示也没问题,无论是ANSI还是UTF-8编码请将Extras-003.zip 中的Extras.htm文件var additional = [ ];部分的值删减为空白,不然就会出现这种情况。(There is no problem with the language display, whether it is ANSI or UTF-8 encoding, please add var additional=[] to the Extras.htm file in Extras-003.zip; Delete some values to blank, otherwise this situation will occur,)

菜单会同时显示var additional的值中MoI 5.0\commands的部分和%AppData%\Moi\commands 的部分。(The menu will display both the MoI 5.0 \ commands section and the% AppData% \ Moi \ commands section in the value of var additional.)

2:我之前那种修改方式只支持UTF-8编码。(My previous modification method only supported UTF-8 encoding.)

3:请编辑您的第一个讨论添加脚本放置的位置位置为:C:\Users\Administrator(username)\AppData\Roaming\Moi\commands可以同时兼容%AppData%\Moi\commands 的表述

Please edit your first discussion and add the script to the following location: C: \ Users \ Administrator (username) \ AppData \ Roaming \ Moi \ commands, which can be compatible with both% AppData% \ Moi \ commands

EDITED: 23 Jun by SUIYAN

Attachments:

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
10353.27 In reply to 10353.24 
re: Saving as UTF-8 with Byte Order Mark - that's only needed if there is unicode text directly contained in the .htm file.

It isn't needed if the text is being generated at runtime like from moi.filesystem.getFiles().

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Larry Fahnoe (FAHNOE)
10353.28 In reply to 10353.26 
Hi SUIYAN,

Thank you for confirming that Extras properly displays the Chinese characters from the scripts in your personal commands folder.

> please add var additional=[] to the Extras.htm file in Extras-003.zip; Delete some values to blank, otherwise this situation will occur,)

I'm sorry, I do not understand, what situation or problem are you saying results from using the Extras from Extras-003.zip? I do not read or understand the Chinese characters in your example screen shot, so I do not understand what you are trying to report.

I just tested with an empty personal commands directory and it just displayed the entries in the additional array, as it should have. When I use it with all my normal scripts in my personal commands directory, they show up in addition to those in the additional array. As far as I know Extras works fine for myself and many others, but you're running into something new. I suspect it may have something to do with your system, but I do not know what changes you have made.

--Larry
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  大道刀 (SUIYAN)
10353.29 In reply to 10353.28 
HI Larry
现在Extras非常好用了。简单的说菜单会同时显示 var additional=[] 中的脚本名称值(首先moi安装目录/commands 路径下对应的脚本名称。)和 %AppData%\Moi\commands 中所存储的脚本名称值。(Now Extras is very useful. Simply put, the menu will display both the script name value in var additional=[] (first, there is a corresponding script name in the/commands path of the moi installation directory) and the script name value stored in% AppData% \ Moi \ commands.)


我之前的修改方式是先在添加 var additional=[]中添加所需脚本名称的值,用utf-8编码存储,然后将moi安装目录/commands 路径下的相应脚本改为var additional=[]中的对应值,这样就可以得到我想要的显示的语言和名称。而现在只需要将脚本复制到%AppData%\Moi\commands中,改为我需要显示的名称。(My previous modification method was to first add the value of the required script name in var additional=[], store it in UTF-8 encoding, and then rename the corresponding script in the/commands path of the Moi installation directory to the corresponding value in var additional=[], so that I can obtain the language and name I want to display. And now all I need to do is copy the script to% AppData% \ Moi \ commands and change it to the name I need to display.)

Attachments:

Image Attachments:
Size: 190.2 KB, Downloaded: 13 times, Dimensions: 1440x821px
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Larry Fahnoe (FAHNOE)
10353.30 In reply to 10353.29 
Hi SUIYAN,

I think that you are misunderstanding the intended function of this script, so maybe an example of what it looks like on my system would help:



The dividing line is intentional because the commands above it are those that are built-in to MoI, but do not have icons in the UI; these are the contents of the additional array. The commands below are the scripts in my personal commands directory. The separator serves to remind about the two categories of commands beyond what is already provided by MoI's UI. Now maybe it will make sense why I do not want to change the way Extras works. You of course are welcome to take the code and adjust it as you see fit. I would only request that you call your version something other than Extras.

--Larry
Attachments:

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  大道刀 (SUIYAN)
10353.31 
HI EVERYONE

我上传了我的插件管理菜单版本,它支持多语言,删除了var additional中的值让它们不再显示C:\Users\Administrator\AppData\Roaming\Moi\commands之外的插件,方便管理。增加了表头的显示和定制,去除了关闭按钮,下划线,并且可根据安装说明、注释,按需要恢复完全它们。
(I uploaded a version of my plugin management menu, which supports multiple languages. I removed the value in var addition to make them no longer display plugins other than C: \ Users \ Administrator \ AppData \ Roaming \ Moi \ commands, making it easier to manage. Added display and customization of the header, removed the close button and underline, and can be fully restored according to installation instructions and comments as needed.)

在#18的讨论中可以下载到它(It can be downloaded in the discussion of # 18&# 20)




我想继续改进它,增加一个或几个额外的调用路径有可能在菜单中按所在文件夹的名称分类显示,方便脚本的分类管理,我对编程了解的非常少,请问我该怎么做?(I would like to continue improving it by adding one or several additional call paths that may be displayed in the menu according to the name of the folder they are located in, making it easier to manage the classification of scripts. I have very little knowledge of programming, what should I do?)

EDITED: 28 Jun by SUIYAN

Attachments:

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
 
Show messages:  1-5  6-25  26-31