|
27 | 27 |
|
28 | 28 | Global $sVersion |
29 | 29 | Global $bIsPriv = _IsDestinationRestricted() |
30 | | -Global Enum $bNoApps, $bNoBing, $bNoChat, $bNoFeed, $bNoImgs, $bNoMSN, $bNoNews, $bNoPDFs, $bNoPilot, $bNoSpotlight, $bNoTray, $bNoUpdates, $sFeed, $sFeedPath, $sImages, $sImagePath, $sNews, $sPDFApp, $sSearch, $sSearchPath, $sSMRefesh, $sStartMenu, $bStartup, $sWeather, $sWeatherPath |
| 30 | +Global Enum $bNoApps, $bNoBing, $bNoChat, $bNoFeed, $bNoImgs, $bNoMSN, $bNoNews, $bNoPDFs, $bNoPilot, $bNoSpotlight, $bNoTray, $bNoUpdates, $sFeed, $sFeedPath, $sImages, $sImagePath, $sNews, $sPDFApp, $sSearch, $sSearchPath, $iSMRefesh, $sStartMenu, $bStartup, $sWeather, $sWeatherPath |
31 | 31 |
|
32 | 32 | If @Compiled Then |
33 | 33 | $sVersion = FileGetVersion(@ScriptFullPath) |
@@ -80,7 +80,7 @@ Func RunInstall(ByRef $aConfig, ByRef $aSettings, $bSilent = False) |
80 | 80 | _SetSettingValue("PDFApp" , $aSettings[$sPDFApp] , $sLocation) |
81 | 81 | _SetSettingValue("Search" , $aSettings[$sSearch] , $sLocation) |
82 | 82 | _SetSettingValue("SearchPath" , $aSettings[$sSearchPath] , $sLocation) |
83 | | - _SetSettingValue("SMRefresh" , $aSettings[$sSMRefesh] , $sLocation) |
| 83 | + _SetSettingValue("SMRefresh" , $aSettings[$iSMRefesh] , $sLocation) |
84 | 84 | _SetSettingValue("Weather" , $aSettings[$sWeather] , $sLocation) |
85 | 85 | _SetSettingValue("WeatherPath", $aSettings[$sWeatherPath], $sLocation) |
86 | 86 |
|
@@ -327,7 +327,7 @@ Func RunSetup($iType = 0, $bSilent = False, $iPage = 0, $hSetupFile = @ScriptDir |
327 | 327 | $aSettings[$bNoSpotlight] = _GetSettingValue("NoSpotlight") |
328 | 328 | $aSettings[$bNoTray] = _GetSettingValue("NoTray") |
329 | 329 | $aSettings[$bNoUpdates] =_GetSettingValue("NoUpdates") |
330 | | - $aSettings[$sSMRefesh] = _GetSettingValue("SMRefresh") |
| 330 | + $aSettings[$iSMRefesh] = _GetSettingValue("SMRefresh") |
331 | 331 | If $aSettings[$bNoBing] Then |
332 | 332 | $aSettings[$sSearch] = _GetSettingValue("Search") |
333 | 333 | $aSettings[$sSearchPath] = _GetSettingValue("SearchPath") |
@@ -383,7 +383,7 @@ Func RunSetup($iType = 0, $bSilent = False, $iPage = 0, $hSetupFile = @ScriptDir |
383 | 383 | $aSettings[$sPDFApp] = _GetSettingValue("PDFApp", "String", $aConfig[$hFile]) |
384 | 384 | $aSettings[$sSearch] = _GetSettingValue("Search", "String", $aConfig[$hFile]) |
385 | 385 | $aSettings[$sSearchPath] = _GetSettingValue("SearchPath", "String", $aConfig[$hFile]) |
386 | | - $aSettings[$sSMRefesh] = _GetSettingValue("SMRefresh", "Int", $aConfig[$hFile]) |
| 386 | + $aSettings[$iSMRefesh] = _GetSettingValue("SMRefresh", "Int", $aConfig[$hFile]) |
387 | 387 | $aSettings[$sStartMenu] = _GetSettingValue("StartMenu", "String", $aConfig[$hFile]) |
388 | 388 | $aSettings[$bStartup] = _GetSettingValue("Startup", "Bool", $aConfig[$hFile]) |
389 | 389 | $aSettings[$sWeather] = _GetSettingValue("Weather", "String", $aConfig[$hFile]) |
@@ -660,6 +660,7 @@ Func RunSetup($iType = 0, $bSilent = False, $iPage = 0, $hSetupFile = @ScriptDir |
660 | 660 | Local $hRefresh = GUICtrlCreateInput("100", 110, 120, 50, 20, $ES_NUMBER+$ES_RIGHT) |
661 | 661 | GUICtrlCreateUpdown($hRefresh) |
662 | 662 | GUICtrlSetLimit(-1, 2000, 100) |
| 663 | + GUICtrlSetData(-1, $iSMRefesh) |
663 | 664 | Local $hNoIcon = GUICtrlCreateCheckbox("Hide Tray Icon", 170, 120, 120, 20) |
664 | 665 | GUICtrlSetState(-1, $aSettings[$bNoTray]) |
665 | 666 | Local $hStartup = GUICtrlCreateCheckbox("Start w/ Windows", 300, 120, 120, 20) |
@@ -988,7 +989,7 @@ Func RunSetup($iType = 0, $bSilent = False, $iPage = 0, $hSetupFile = @ScriptDir |
988 | 989 | $aSettings[$sPDFApp] = $sHandler |
989 | 990 | $aSettings[$sSearch] = GUICtrlRead($hEngine) |
990 | 991 | $aSettings[$sSearchPath] = $sEngine |
991 | | - $aSettings[$sSMRefesh] = GUICtrlRead($hRefresh) |
| 992 | + $aSettings[$iSMRefesh] = GUICtrlRead($hRefresh) |
992 | 993 | $aSettings[$bStartup] = _IsChecked($hStartup) |
993 | 994 | $aSettings[$sWeather] = GUICtrlRead($hWeather) |
994 | 995 | $aSettings[$sWeatherPath] = $sWeatherEng |
@@ -1159,6 +1160,14 @@ Func RunSetup($iType = 0, $bSilent = False, $iPage = 0, $hSetupFile = @ScriptDir |
1159 | 1160 | EndIf |
1160 | 1161 | Next |
1161 | 1162 |
|
| 1163 | + Case $hMsg = $hRefresh |
| 1164 | + Switch GUICtrlRead($hRefresh) |
| 1165 | + Case 0 To 999 |
| 1166 | + GUICtrlSetData($hRefresh, 100) |
| 1167 | + Case 2001 To 9999 |
| 1168 | + GUICtrlSetData($hRefresh, 2000) |
| 1169 | + EndSwitch |
| 1170 | + |
1162 | 1171 | Case $hMsg = $hSearch |
1163 | 1172 | If _IsChecked($hSearch) Then |
1164 | 1173 | GUICtrlSetState($hEngine, $GUI_ENABLE) |
|
0 commit comments