I'm getting an interesting error when I attempt to combine AIM with a nested
wait.for loop.
 
"Cannot use this type of wait in nested script"  "Error occurred near line 9
which contained wait.for(3000)"
 
The main script is called from the scheduler which has a startup event.  The
entire script is:
if(ValidPath("N:"))
   do(?"C:\Program Files\AIM\aim.exe")
 
.WeatherUpdate

The WeatherUpdate script then calls a VB script file to get weather info.
The error message occurs on the line where the script is waiting for the
data to come back.  Code below:
;; configure this path to wherever you put your weather.com icons
Local IconPath, IconExtension, WeatherInfoFileName, WeatherInfoBarName, fp
Local ciudad, temperatura, icono, caption, path_to_icon
 
IconPath="C:/Program Files/PowerPro/Weather/Icons/"
IconExtension=".ico"
WeatherInfoFilename="C:/temp/tiempo_Alex.txt"
WeatherInfoBarName="Bar"
 
do(?"C:\Program Files\PowerPro\Weather\tiempo.vbs", "22314
"++WeatherInfoFileName)
wait.for(3000)
....
 
 
The error occurs on the wait.for(3000) line.  This script is also called
every 15 minutes via timer and no errors are received.
 
I've tried different other executables, for example, notepad, and a couple
of other editors, and didn't have any problems.  I also moved the code above
to another script and ran it from explorer with the same error.
 
Any one have any ideas?  Is there a conflict with AIM somehow?
 
Thanks,
Paul


[Non-text portions of this message have been removed]



Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to