;加在非天气皮肤上的代码:
;+++++++++++++
;当开机时判断有无网络
[MS联网]
Measure=SysInfo
SysInfoType=INTERNET_CONNECTIVITY
SysInfoData=Best
;Disabled=0
IfCondition=#CurrentSection#=1
IfTrueAction=[!ActivateConfig "Weather" "Weather.ini"][!DisableMeasure #CurrentSection#]
IfCondition2=#CurrentSection#=-1
IfTrueAction2=[!DeactivateConfig "Weather" "Weather.ini"][!DisableMeasure #CurrentSection#]
;开机过程中,当电脑连接到互联网时返回 1,否则返回-1
[MS联网与否]
Measure=SysInfo
SysInfoType=INTERNET_CONNECTIVITY
SysInfoData=Best
OnChangeAction=[!EnableMeasure MS打开皮肤]
[MS打开皮肤]
Measure=Plugin
Plugin=SysInfo
SysInfoType=INTERNET_CONNECTIVITY
Disabled=1
IfCondition=#CurrentSection#=1
IfTrueAction=[!ActivateConfig "Weather" "Weather.ini"][!DisableMeasure #CurrentSection#]
IfCondition2=#CurrentSection#=-1
IfTrueAction2=[!DeactivateConfig "Weather" "Weather.ini"][!DisableMeasure #CurrentSection#]
;加在天气皮肤上的代码:
;+++++++++++++
;当开机时防止判断有无网络
[MS联网]
Measure=SysInfo
SysInfoType=INTERNET_CONNECTIVITY
SysInfoData=Best
;Disabled=0
IfCondition=#CurrentSection#=1
IfTrueAction=[!ActivateConfig "Weather" "Weather.ini"][!DisableMeasure #CurrentSection#]
IfCondition2=#CurrentSection#=-1
IfTrueAction2=[!DeactivateConfig "Weather" "Weather.ini"][!DisableMeasure #CurrentSection#]
经过多种断网和有网情况下的测试,以上代码都添加后,才能确保,开机情况下,是否断网;开机时有无网络,天气皮肤正常显示或隐藏。
现在出现的问题是有时关机时,弹出“内存溢出……”的报警提示。
;+++++++++++++
;当开机时判断有无网络
[MS联网]
Measure=SysInfo
SysInfoType=INTERNET_CONNECTIVITY
SysInfoData=Best
;Disabled=0
IfCondition=#CurrentSection#=1
IfTrueAction=[!ActivateConfig "Weather" "Weather.ini"][!DisableMeasure #CurrentSection#]
IfCondition2=#CurrentSection#=-1
IfTrueAction2=[!DeactivateConfig "Weather" "Weather.ini"][!DisableMeasure #CurrentSection#]
;开机过程中,当电脑连接到互联网时返回 1,否则返回-1
[MS联网与否]
Measure=SysInfo
SysInfoType=INTERNET_CONNECTIVITY
SysInfoData=Best
OnChangeAction=[!EnableMeasure MS打开皮肤]
[MS打开皮肤]
Measure=Plugin
Plugin=SysInfo
SysInfoType=INTERNET_CONNECTIVITY
Disabled=1
IfCondition=#CurrentSection#=1
IfTrueAction=[!ActivateConfig "Weather" "Weather.ini"][!DisableMeasure #CurrentSection#]
IfCondition2=#CurrentSection#=-1
IfTrueAction2=[!DeactivateConfig "Weather" "Weather.ini"][!DisableMeasure #CurrentSection#]
;加在天气皮肤上的代码:
;+++++++++++++
;当开机时防止判断有无网络
[MS联网]
Measure=SysInfo
SysInfoType=INTERNET_CONNECTIVITY
SysInfoData=Best
;Disabled=0
IfCondition=#CurrentSection#=1
IfTrueAction=[!ActivateConfig "Weather" "Weather.ini"][!DisableMeasure #CurrentSection#]
IfCondition2=#CurrentSection#=-1
IfTrueAction2=[!DeactivateConfig "Weather" "Weather.ini"][!DisableMeasure #CurrentSection#]
经过多种断网和有网情况下的测试,以上代码都添加后,才能确保,开机情况下,是否断网;开机时有无网络,天气皮肤正常显示或隐藏。
现在出现的问题是有时关机时,弹出“内存溢出……”的报警提示。