1 Star 0 Fork 1

AniBullet/BulletTools

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
SetToChinese.ms 1.65 KB
一键复制 编辑 原始数据 按行查看 历史
AniBullet 提交于 2019-10-08 00:19 . 第一次提交,备份~
Fn SetDefaultLanguageToChinese = --设置软件语言中文,防止脚本中文乱码(非原创,网上搜集,侵删),安装插件时用,主体脚本不需要这段
(
if (MaxVersion() )[1] >= 15000 do
if "2052" != GetINISetting (GetMAXIniFile()) "File Language Options" "LanguageToUseForFileIO" do
(
DialogMonitorOPS.UnRegisterNotification id:#SetDefaultLanguageToChinese
Fn DialogMonitorCallBackSetDefaultLanguageToChinese =
(
currentHandle = DialogMonitorOPS.GetWindowHandle()
if "Preference Settings" == UIAccessor.GetWindowText currentHandle do
(
languageNames = #("Chinese","English","German","French","japanese","Korean","Current")
childrens = Windows.getChildrenHWND currentHandle
--
languageLabel = undefined
for tempControl in childrens where tempControl[5] == "Default Language:" do
(
languageLabel = tempControl
)
if languageLabel != undefined do
for tempControl in childrens where
(
tempControl[2]==languageLabel[2] and \
tempControl[3]==languageLabel[3] and \
"ComboBox" == tempControl[4] and \
FindItem languageNames tempControl[5] != 0
)
do
(
UIAccessor.SendMessage tempControl[1] 0x014E 6 0
)
UIAccessor.SendMessageID currentHandle #IDOK
)
true
)
DialogMonitorOPS.RegisterNotification DialogMonitorCallBackSetDefaultLanguageToChinese id:#SetDefaultLanguageToChinese
DialogMonitorOPS.Enabled = true
DialogMonitorOPS.ShowNotification()
max file preferences
DialogMonitorOPS.UnRegisterNotification id:#SetDefaultLanguageToChinese
DialogMonitorOPS.Enabled = false
)
)
SetDefaultLanguageToChinese()
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/acebullet/BulletTools.git
git@gitee.com:acebullet/BulletTools.git
acebullet
BulletTools
BulletTools
master

搜索帮助