代码拉取完成,页面将自动刷新
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()
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。