|
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 |
|
@@ -319,7 +319,7 @@ Func RunSetup($iType = 0, $bSilent = False, $iPage = 0, $hSetupFile = @ScriptDir |
319 | 319 | $aSettings[$bNoSpotlight] = _GetSettingValue("NoSpotlight") |
320 | 320 | $aSettings[$bNoTray] = _GetSettingValue("NoTray") |
321 | 321 | $aSettings[$bNoUpdates] =_GetSettingValue("NoUpdates") |
322 | | - $aSettings[$sSMRefesh] = _GetSettingValue("SMRefresh") |
| 322 | + $aSettings[$iSMRefesh] = _GetSettingValue("SMRefresh") |
323 | 323 | If $aSettings[$bNoBing] Then |
324 | 324 | $aSettings[$sSearch] = _GetSettingValue("Search") |
325 | 325 | $aSettings[$sSearchPath] = _GetSettingValue("SearchPath") |
@@ -375,7 +375,7 @@ Func RunSetup($iType = 0, $bSilent = False, $iPage = 0, $hSetupFile = @ScriptDir |
375 | 375 | $aSettings[$sPDFApp] = _GetSettingValue("PDFApp", "String", $aConfig[$hFile]) |
376 | 376 | $aSettings[$sSearch] = _GetSettingValue("Search", "String", $aConfig[$hFile]) |
377 | 377 | $aSettings[$sSearchPath] = _GetSettingValue("SearchPath", "String", $aConfig[$hFile]) |
378 | | - $aSettings[$sSMRefesh] = _GetSettingValue("SMRefresh", "Int", $aConfig[$hFile]) |
| 378 | + $aSettings[$iSMRefesh] = _GetSettingValue("SMRefresh", "Int", $aConfig[$hFile]) |
379 | 379 | $aSettings[$sStartMenu] = _GetSettingValue("StartMenu", "String", $aConfig[$hFile]) |
380 | 380 | $aSettings[$bStartup] = _GetSettingValue("Startup", "Bool", $aConfig[$hFile]) |
381 | 381 | $aSettings[$sWeather] = _GetSettingValue("Weather", "String", $aConfig[$hFile]) |
@@ -652,6 +652,7 @@ Func RunSetup($iType = 0, $bSilent = False, $iPage = 0, $hSetupFile = @ScriptDir |
652 | 652 | Local $hRefresh = GUICtrlCreateInput("100", 110, 120, 50, 20, $ES_NUMBER+$ES_RIGHT) |
653 | 653 | GUICtrlCreateUpdown($hRefresh) |
654 | 654 | GUICtrlSetLimit(-1, 2000, 100) |
| 655 | + GUICtrlSetData(-1, $iSMRefesh) |
655 | 656 | Local $hNoIcon = GUICtrlCreateCheckbox("Hide Tray Icon", 170, 120, 120, 20) |
656 | 657 | GUICtrlSetState(-1, $aSettings[$bNoTray]) |
657 | 658 | Local $hStartup = GUICtrlCreateCheckbox("Start w/ Windows", 300, 120, 120, 20) |
@@ -980,7 +981,7 @@ Func RunSetup($iType = 0, $bSilent = False, $iPage = 0, $hSetupFile = @ScriptDir |
980 | 981 | $aSettings[$sPDFApp] = $sHandler |
981 | 982 | $aSettings[$sSearch] = GUICtrlRead($hEngine) |
982 | 983 | $aSettings[$sSearchPath] = $sEngine |
983 | | - $aSettings[$sSMRefesh] = GUICtrlRead($hRefresh) |
| 984 | + $aSettings[$iSMRefesh] = GUICtrlRead($hRefresh) |
984 | 985 | $aSettings[$bStartup] = _IsChecked($hStartup) |
985 | 986 | $aSettings[$sWeather] = GUICtrlRead($hWeather) |
986 | 987 | $aSettings[$sWeatherPath] = $sWeatherEng |
@@ -1151,6 +1152,14 @@ Func RunSetup($iType = 0, $bSilent = False, $iPage = 0, $hSetupFile = @ScriptDir |
1151 | 1152 | EndIf |
1152 | 1153 | Next |
1153 | 1154 |
|
| 1155 | + Case $hMsg = $hRefresh |
| 1156 | + Switch GUICtrlRead($hRefresh) |
| 1157 | + Case 0 To 999 |
| 1158 | + GUICtrlSetData($hRefresh, 100) |
| 1159 | + Case 2001 To 9999 |
| 1160 | + GUICtrlSetData($hRefresh, 2000) |
| 1161 | + EndSwitch |
| 1162 | + |
1154 | 1163 | Case $hMsg = $hSearch |
1155 | 1164 | If _IsChecked($hSearch) Then |
1156 | 1165 | GUICtrlSetState($hEngine, $GUI_ENABLE) |
|
0 commit comments