Re: More weather problems...should be easy
Paul <[email protected]>
| Newsgroups | gmane.comp.windows.shells.litestep |
|---|---|
| Message-ID | <[email protected]> |
Brian Wolven wrote:
> Hale, Paul wrote:
>> I am having a problem after I update my weather. For some reason, when I
>> create the labels for the current condition or the forecast, lsColor
>> doesn't seem to register. IE, none of the color evars are recognized.
>>
>> OK, so here is the original: (forgive wrapping)
>>
>> *Alias !getWeather !execute [wscript $Weatherscript$ %1 /prefix:loc1
>> /bang:!UpdateWeather]
>> *Alias !UpdateWeather !Execute [!reload][!NetReloadModule
>> lscolor-1.6.1][!popuprescan][!LabelRefresh dateTime][!LabelRefresh
>> WeatherButton][!netReloadModule $timerModule$]
>> Here is mine:
>>
>> *Script bang !getWeather *Script exec !Execute [wscript
>> $WeatherDir$WeatherNotDLL.vbs]
>> *Script exec !reload
>> *Script exec !NetReloadModule $ColorModule$
>> *Script exec !PopupRescan
>> *Script exec !LabelRefresh Forecast
>> *Script exec !LabelRefresh CurrCond
>> *Script exec !netReloadModule $TimerModule$
>> *Script ~bang
>
> When you !reload you're wiping out the existing definitions of the
> colors from lscolor (that's why I did a !netreloadmodule of lscolor),
> and there must be some timing/threading issue that prevents them from
> being reset before the labels and popups are updated in the mzscript
> bang. Apparently the equivalent !alias didn't have that problem. You
> could try sticking a pause in there, I suppose. I think that
> !popuprescan has changed slightly since that code was written also;
> perhaps it's doing a !reload now by default? So you're wiping out the
> color vars again after you've reloaded them. Time to play around with
> the bang order and see what works.
>
> Also, if you're only displaying the weather data in labels you can skip
> the !popuprescan now.
Yeah, I still have the popup in there. Sometimes it is just quicker to
read the popup.
I am going to play with the bang order I guess.
>
>
> ---------------------------------------------------------------------
> Can't Unsubscribe? Check http://desktopian.org/listunsub.html
> LS List Homepage: http://wuzzle.org/list/litestep.php
> Get the LS FAQ: http://lsfaq.shellfront.org
>
>
---------------------------------------------------------------------
Can't Unsubscribe? Check http://desktopian.org/listunsub.html
LS List Homepage: http://wuzzle.org/list/litestep.php
Get the LS FAQ: http://lsfaq.shellfront.org