yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Apps and Games] ToddeSwe:
I can just see that mortscript.exe is runing... not the script you made.

The thing is that my Swedish device dont have a Startup folder on my device it's called Autostart.

I had to change the registre manualy to get the path in the wallpaper settings in S2U2. Now i got ONE of the walls in the mycombo animated weather.

I cant manage to get it to change though... Any suggestions?

I can now see that the script is not active in the task manager you posted.

But the path in S2U2 settings is not changed.... what am i doing wrong? :)
[Windows Mobile Apps and Games] motisu:
OK, I'm using S2U2 1.35. The old version of the script that is working is weather_WallpaperYah0.35u.mscr, where S2U2 gets its weather updates from Userweather. M2D version is 19B which is the last version which supports non-HTC devices. M2D weather works fine, but only updates itself, not S2U2 backgrounds. When I set S2U2 to use M2D's weather, it also works OK for the weather bar, but the background does not update.

I think that the problem is that your script is not picking up the registry enties for M2D weather, so it is not updating S2U2's background.

The reason for the new script is so that M2D, S2U2 weather bar and S2U2 background should all be syncronized, showing the same weather. As it is now, M2D and the weather bar are synced, but the background weather source is different (Yahoo) so they don't always show the same weather.
[Windows Mobile Apps and Games] superflysocal:
have you disabling setting errorlevel with a # in front of it to see if there is an error?

Also, can you post your script including any changes you made so i can see?

is citynumber set to 0?
[Windows Mobile Apps and Games] ToddeSwe:
How do i set the errorlevel to on?
[Windows Mobile Apps and Games] motisu:
Error invalid parameter count for Regread

Line 91.....

I am trying the script with no changes at all and I only have 1 weather location so it is 0
[Windows Mobile Apps and Games] superflysocal:
Ok, i manually added these manila2d keys even though i don't have manila2d installed just to debug this script.

turns out i was trying to get too fancy with the citynumber option. here is an updated script.

please let me know if this works.

link removed...see first page for updated script.
[Windows Mobile Apps and Games] motisu:
OK, I did some debugging of my own:). The problem was a concatanation of building the key string. I replaced the ","'s before and after citynumber with "&" and now the script works fine.
[Windows Mobile Apps and Games] superflysocal:
of course!!! how silly of me. Haven't played with mortscript in a while. i think my new script works as well, but this way is much neater.

I will repost on post #457.

Once more people confirm it is working, i will add to front page.
[Windows Mobile Apps and Games] motisu:
One new problem that I've discovered with the new script: There is no way of telling it that I want the temps in Celcius and not in Fahrenheit. The old yahoo script had a variable to make the change. Is there a possibility of adding this feature?

Edit: From what I can tell, Manila2D does an internal conversion from F to C before it displays the numbers on screen. Therefore, it is not enough to simply read the values from the registry, as in the registry, the values are in F.
[Windows Mobile Apps and Games] ToddeSwe:
Hi!

I tried the new updated script without any luck at all.

The only things i have changed to fit my swedish device is:

wallpaperfolder = "\Minneskort\MyCombo\"

and

Run("\Program\S2U2\iLock2.exe","-refresh")

if (WndActive("S2U2") = True)

Run("\Program\S2U2\s2u2.exe")

What else is there to change?
[Windows Mobile Apps and Games] superflysocal:
put a # in front of the errorlevel line and see if there is an error.

I am also unclear as to what your problem is. What is it doing or not doing? If the wallpaper is not changing, are you giving it time? There has to be a change in the weather before the wallpaper is changed. first start with if there are any errors (see above).

also, on the first post there are some links to debugging issues involving non-usa/english devices which you might try also.
[Windows Mobile Apps and Games] superflysocal:
from the reg file that toddswede sent me, it appears the temps were in C for him. I figured that m2d will output the temp in the registry to whatever you set it at with m2d. What is the temp display on m2d in? Celsius or Fahrenheit? It should be the same in the registry, no?

Try change the m2d setting and see if the registry temp change as well.
[Windows Mobile Apps and Games] craigwillie:
Couple of questions..

A great implementation. A couple of questions I could not answer by searching...

1. Is there a VGA set of wallpapers (animated ones would be a plus)

2. Above the slider bar there is a small weather icon. How do I remove that?
[Windows Mobile Apps and Games] ToddeSwe:
Hi!

When using the:

# Quietly ignore all errors

#ErrorLevel("off")

i got:

comma or closing paranthese expected

Line:

codeHTC = RegRead("HKLM","\Software\HTC\Manila2D\Weather\"&citynumber&"\"Forecast0\", "Icon")

So something is wrong

I have no programing knowledge at all so i cant see what the problem is.

YESSS!!! I got it :)

The line: codeHTC = RegRead("HKLM","\Software\HTC\Manila2D\Weather\"&citynumber&"\"Forecast0\", "Icon")

Should be:

codeHTC = RegRead("HKLM","\Software\HTC\Manila2D\Weather\"&citynumber&"\Forecast0\", "Icon")

And NOW IT WORKS!!!!

Thanks for helping!!!!!
[Windows Mobile Apps and Games] superflysocal:
yes, that's it. doesn't it feel great to figure it out yourself? And now you know a little more about Mortscript. I had no knowledge of Mortscript either when I started, but i asked people around for a script like this, got no response so i decided to make my own, and now look where this thread is at.

btw thanks for letting me know about this little error.

let me know if you need anymore help.
[Windows Mobile Apps and Games] superflysocal:
1. Not at this time.

2. Go to su2u settings and disable weather. this however will remove the text displaying the temperatures as well. this is a s2u2 thing and has nothing to do with this script.
[Windows Mobile Apps and Games] ToddeSwe:
When i bought my first computer i bought programming handbooks before i bought games or other stuff. But soon i started to realize that i was not ment to be a programmer of any kind, but i did battle for a good 6 months before i gave it up :( And i'm talking about machinelanguage that was the only language to use when making demos that was very popular back then :)

So i do have some knowledge but this is not something that has to do with programming knowledge this was just a type error

But i'm glad anyway I FOUND IT :)

he he he

Thanks again!

Now i just want som nice animated gif's to go with this superb script

I use WeatherWallpaperAnimated1.0 but i don't like the XP like background at the bottom... :)
[Windows Mobile Apps and Games] motisu:
That's the funny thing. The temps in the registry are in F while the display shows temps in C. Thats why I said that there must be an internal switch within the program which checks the registry value: HKLM\Software\HTC\Manila2D\Weather\Settings\Celsius (Dword) if 1, then it does a conversion before display. If 0, it displays the registry contents ubchanged.
[Windows Mobile Apps and Games] superflysocal:
this should be an easy fix. I'll get to it.

add this after the codeHTC line and see if it works.

# if format =1 then temp will be converted to celsius
format= RegRead("HKLM","\Software\HTC\Manila2D\Weather\Settings\","Celsius")

# c=(f-32)*.5555555556
if (format eq 1)
temp=(temp-32)*.555555556
hitemp=(hitemp-32)*.555555556
lotemp=(lotemp-32)*.555555556
endif
[Windows Mobile Apps and Games] motisu:
Much obliged. :)
[Windows Mobile Apps and Games] superflysocal:
i posted it on the previous reply. did it work?
[Windows Mobile Apps and Games] motisu:
The conversion works and the math is correct. only problem is that all the numbers have 6 decimal places after the decimal point....... I think that you have to integerize them before display.:)
[Windows Mobile Apps and Games] superflysocal:
try :

temp= ((temp-32)*5)/9

(also for hightemp, lotemp, etc.)

and tell what you get.

if it doesn't work see if mortscript will let you do this:

temp=int(((temp-32)*5)/9)
[Windows Mobile Apps and Games] eboy44:
can we get a Manilla 3D version for the touch pro?
[Windows Mobile Apps and Games] motisu:
temp= ((temp-32)*5)/9

(also for hightemp, lotemp, etc.)

worked fine. Great work!!
[Windows Mobile Apps and Games] cellfreak:
VGA

Ok VGA gifs are done to my liking.

I am still working on the code to get it to work on my Diamond.

I am running S2U2 VGA 1.35 - Mortscript V4.1 and have the regular weather running fine. I used the Yahoo script to pull the weather data. Now to get the wallpaper script working.
[Windows Mobile Apps and Games] ToddeSwe:
Is this working even with the newer version that holds the s2utext in the ini.lang file and not in the registre as it was before?

I have tried this but i don't get any weatherinfo in the sliderbar...

Or have i missed something?
[Windows Mobile Apps and Games] Reignz:
I have GPSToday on my phone and I would like for my location code to change with my gps location. How do I need to change the script for this to work?
[Windows Mobile Apps and Games] alainwong:
good

I using S2U2 with yahoo weather script need yours today weather script without weatherpanel ,yahoo only , can you help me ?
[Windows Mobile Apps and Games] claus1953:
I have also S2U2 version 1.35 installed and it work very nicely. Have you selected user weather in s2u2 settings?
[Windows Mobile Apps and Games] claus1953:
To get rid of the small weather icon without loosing the temperature text you can just remove the weather folder from the gfx folder and it goes away
[Windows Mobile Apps and Games] claus1953:
Works like a charm...have made 2 scripts, one for gifs and one for jpg, so i can just swap them and have animated weather or still wallpaper. Love now my s2u2 more than before.
[Windows Mobile Apps and Games] ToddeSwe:
:o NOW i have :)

THANKS!
[Windows Mobile Apps and Games] wparisi:
I cannot get the slideforecast to display on the slide bar. I modified the script for "slideforecast = 1" but still get the "slide to unlock" text displayed. I am using S2U2 1.35 on an ATT Tilt.
[Windows Mobile Apps and Games] maschepers:
S2U2 1.3x Issues: Slide to Unlock Bar Weather Summary

Do you know if anyone has this working, or is working on a solution? I have been knocking my head against this brick wall for the better part of 4 days now.

Thanks.
[Windows Mobile Apps and Games] holmanm:
A_C changed the "Slide to Unlock text" from a registry to the lang.ini file, so the script doesn't work any more for that.
[Windows Mobile Apps and Games] claus1953:
It is not displayed on the slider but just above it, but you have to have user weather selected
[Windows Mobile Apps and Games] claus1953:
Sorry forgot to enclose screen shot for better understanding:D
[Windows Mobile Apps and Games] wparisi:
I understand that. I have "user weather selected" and get what you get. But for the upcoming forecast that corresponds with the icon, how do you get that to display on the "slide to unlock" bar
[Windows Mobile Apps and Games] ssamth2003:
Today Screen

Dear all,

sorry if this already posted, I really like the idea of this one, but i really dont like SU2U. If the script can be apply to the today screen? i means like a backgorund theam for M2D and change the weather automatic. (this can see on the SPB mobile shell theme).

thks for sharing the good idea.
[Windows Mobile Apps and Games] claus1953:
The script was working well up to lately as i flashed a new ROM and reinstalled everything, the script only works when i activate it manually, and it does not update the wallpaper automatically. I checked the script and everything is ok. Also i never could make the text display on the slide, even after installing a transparent one and deleting slideanis.

Any hint what to do?
[Windows Mobile Apps and Games] Tiger63ru:
Hi

HI ALL....

Prompt where it is possible to find animated wallpaper for VGA?
[Windows Mobile Apps and Games] mpayne:
Hi rifraf1,

thanks first of all for your script which enables condition based on Pocket Weather changes of the weather in S2u2.

I was wondering if you could get the script to take the information from metar data. I use to get the current conditions from metar data. Any chance to change to metar data as source ?

Thank you very much in advance !!!!
[Windows Mobile Apps and Games] claus1953:
If you activate the script manually does the wallpaper change? I have the problem that it does not update automatically but only manually.
[Windows Mobile Apps and Games] moesfeld:
IMOH A mayor change in s2u2 was made and the sliding text is now stored in the lang.ini located in s2u2 program folder.

I solved this by creating a registry value "olds2u2text" (which sould match the s2u2 text on first creation) and then replacing this text in the lang.ini with the actual weather information (I had some problems with Write/readini changing the ini format to ANSI instead of unicode therefor making it unreadable for s2u2)

Also i translate the cond to german [or any other language (not completed)]

in the bottom left corner above the slider I display weather for tomorrow.

Background matches forecast for today as well as the slider text. And the script allso updates weather icon/icons in ifonz.

It is pretty much a combined script of schettjs changed script by Sid-Shrunk and this one with some options added by me.

I use a code something like this

if(olds2u2text ne s2u2text)
tempset = ReadFile( s2u2path&"lang.ini", 0, "unicode")
tempset = Replace(tempset, olds2u2text, s2u2text)
WriteFile( s2u2path&"lang.ini", tempset, FALSE, "unicode")
RegWriteString("HKCU", "\Software\Sid-Shrunk\Weather\", "olds2u2text", s2u2text)
endif

to change s2u2 text

Maybe i will release the script but only when i got it fully up and running
[Windows Mobile Apps and Games] cooldude_no1:
Hi gurus,

First time mortscript user here. I can't get this to script to work in my HTC Diamond. I am using the WeatherWallpaperHTC mortscript with the following value:

# folder containing your weather wallpaper
wallpaperfolder = "\Internal Storage\Program Files\S2U2 WeatherWallpaper\Wallpaper MyCombo0.3\"

p/s: I'd also tried changing the wallpaperfolder value to "Storage Card" instead of "Internal Storage".

I'd followed the instructions on the first page - i.e. putting it in my windows' startup folder, and even soft reseted.

Have I done something wrong? Is there anything I need to change in S2U2 settings itself? I had even changed "Todays Weather Forecast From" to "option 5" which is "UserWeather" in the S2U2 setting.

For what is worth, I am using Mortscript v4.2 - wasn't able to find v4.1

please help and cheers,
[Windows Mobile Apps and Games] holmanm:
If the folder is on the internal memory then you just need:

\Program Files\S2U2 WeatherWallpaper\Wallpaper MyCombo0.3\

If you don't have Total Commander or something that can show the path then you can connect to active sync on the computer and right click the active sync icon in the system tray and pick explore. Go To the "Wallpaper MyCombo0.3" folder on the PPC and it will show you the path in the "Address Bar".
[Windows Mobile Apps and Games] cooldude_no1:
Yeah, that's what I did previously and it shows me: "Computer\HTC Touch Diamond P3700\Internal Storage\Program Files\S2U2 WeatherWallpaper\Wallpaper MyCombo0.3\" In any case, your suggestion did not work for me. :(
[Windows Mobile Apps and Games] Batistian:
Don't know why, but always getting this error. :confused:

Anyone can help me. please.
[Windows Mobile Apps and Games] holmanm:
I would say you don't have MortScript.exe on the SD card in the \Program Files\MortScript\ folder.
[Windows Mobile Apps and Games] Batistian:
Hi holmanm, you are here too. :D

I have the MortScript.exe. This error did not happen all the time, only sometimes.

Sometimes it is okay, somtimes not.
[Windows Mobile Apps and Games] pur_berger:
don't know about the performance of the Storagecard of the Omnia - but would it be better to install Mortscript in the Main Memory? It's not that big and I think you have less problems.
[Windows Mobile Apps and Games] Batistian:
Ha pur_berger, you are also here. :D:D

The Mortscript is not in the Storage Card. I install it in the My Storage of the phone.

Omnia seperate the Main Memory and the Storage Memory.

I'll try reinstalling it in the Main Memory.

Thanks again guys.
[Windows Mobile Apps and Games] pur_berger:
It's just same ineterset - playing around with an idea of doing an "animted"wallpaper wirh a basic gif and a Weathericon which lies above it (so no animated gif's are used) - and maybe something with GPS localization and weather data - something to kill time during job ;) - so I'm searching through several related forums - and - well - here you are :)
[Windows Mobile Apps and Games] holmanm:
Well if it's not on the storage card the you need to edit the script to remove the \Storage Card from the path.

pur_berger, I'm beginning to think you are my long lost German twin brother.
[Windows Mobile Apps and Games] Dams74:
Thank you for this script
[Windows Mobile Apps and Games] Batistian:
Thanks again pur_berger.

Installing Mortscript in the Main Memory did eliminate the problem. :)

This is the third day that the error did not appear at all. :D
[Windows Mobile Apps and Games] daniruth:
To those who are having trouble with s2u2 refreshing wallpaper

I've modified the weather wallpaper script and it works with s2u2 (1.52e)!! (at least for me)

Below are the changes to my wallpaper weather 0.36u script with yahoo updates. With these changes it now works for me and refreshes / updates the wallpaper. It's been working now for around 6 hours. I thought I would put it here in case someone finds it useful.

By the way, this is the first time modifying anything with mortscript (never done it before at all), so, please, don't hammer me if it's not tidy or it doesn't make sense. All I can say is that it now refreshes and it works!!

See ya

(You'll find these lines near the end of the script)

if (ccode ne curforecast)
Run("\Program Files\S2U2\iLock2.exe","-refresh")
if (WndActive("S2U2") = True)
Sleep(3000)
Run("\Program Files\S2U2\s2u2.exe")
endif
if (WndActive("S2U2") = False)
Sleep(3000)
Run("\Program Files\S2U2\s2u2.exe")
endif
else
if (slideforecast ne 0)
if (s2utext ne olds2utext)
Run("\Program Files\S2U2\iLock2.exe","-refresh")
if (WndActive("S2U2") = True)
Sleep(3000)
Run("\Program Files\S2U2\s2u2.exe")
endif

if (WndActive("S2U2") = False)
Sleep(3000)	Run("\Program Files\S2U2\s2u2.exe")
endif
endif
endif
endif
[Windows Mobile Apps and Games] SnakeLT:
can anybody give pictures for touch hd? 480x800
[Windows Mobile Apps and Games] superrrguy:
Question:

Should running the weather script cause S2U2 to close?

I had to take iLock2 out of the startup because after adding the weather script I get an "iLock2 and S2u2 are closing" message @ start up.

Also, during the day S2u2 doesn't lock the phone so I'm assuming that the script is causing S2u2 to close at intervals.

I'm using the weather_WallpaperYah0.36.mscr script.

Anything in the script that refers to iLock2 tells it to refresh.

Run("\Program Files\S2U2\iLock2.exe","-refresh")

Am i missing something else?

Is the closing message normal? I'm assuming the script is supposed to restart the iLock2 process after closing it.
[Windows Mobile Apps and Games] holmanm:
Since a few versions back the refresh parameter has stopped working with S2U2. It's been reported to A_C, in the meantime you need to replace:

Run("\Program Files\S2U2\iLock2.exe","-refresh")

with:

Run("\Program Files\S2U2\iLock2.exe","-nomsg")

Sleep(3000)

Run("\Program Files\S2U2\iLock2.exe",)
[Windows Mobile Apps and Games] Batistian:
Yes, this issue had been discussed HERE.

If iLock2 is not present in the startup folder, You'll have to start it manually everytime you restart your phone.

Yes, since you had set an interval, in your script, to get the weather. So, everytime your script updates the weather, it refresh iLock2 causing iLock2 to close.

No, you didn't missed anything.

Do as holmanm's recommendation, as above, and you'll be fine.

It is supposed to restart iLock2, but since v1.5 up, it does not respond to -refresh anymore.
[Windows Mobile Apps and Games] superrrguy:
Thanks for the info! Works much better now.
[Windows Mobile Apps and Games] superrrguy:
One more question.

It doesn't look like I'm getting tomorrow's weather after 4pm.

# get tomorrow's weather if hour past 4pm (>15)

if (hour > 15)

notDone = -1

I'm not sure what I need to change to enable it.

Also, it' would probably be a little more useful if it was tomorrow's weather after 9pm or even later. Once it is enabled could I just change (hour > 21)?
[Windows Mobile Apps and Games] XTREEM|RAGE:
I hope there will be an official update asap ;). Love this and all the work that has been put in by the members :D
[Windows Mobile Apps and Games] holmanm:
I guess everyone knows now, but since S2U2 version 1.6 it now updates the Wallpaper from a registry change without restarting ilock2.exe. And the "slide to unlock" text hasn't worked since switch from registry to lang.ini.

So the ilock2.exe lines can be commented out or removed now.

Such as the following lines.

if (ccode ne curforecast)
Run("\Program Files\S2U2\iLock2.exe","-refresh")
if (WndActive("S2U2") = True)
Run("\Program Files\S2U2\s2u2.exe")
endif
else
if (slideforecast ne 0)
if (s2utext ne olds2utext)
Run("\Program Files\S2U2\iLock2.exe","-refresh")
if (WndActive("S2U2") = True)
Run("\Program Files\S2U2\s2u2.exe")
endif
endif
endif
endif

And now it doesn't matter that the ilock2.exe -refresh parameter doesn't work anymore per A_C' change log because all weather changes happen immediately.
[Windows Mobile Apps and Games] superrrguy:
It looks like it stops updating the weather if you remark these lines out.

...and if you leave it as is, it seams to quit S2U2 and not start it back up.
[Windows Mobile Apps and Games] holmanm:
That's strange, as long as none of the RegWrite lines are commented it out it should update fine.
[Windows Mobile Apps and Games] superrrguy:
Looks like it started works as you said it should.

Thanks!
[Windows Mobile Apps and Games] brock1909:
i am having the same issue. i cannot get my wallpaper to show. items are on the internal storage in my "internal storage/my documents/my pictures/" but nothing shows......crazy

EDIT-make sure your settings for s2u2 wallpaper are set the same as your direcory for the mortscript. mine was something crazy. changed it and now it works
[Windows Mobile Apps and Games] dmitrich:
animated weather 480x640 480x800

I was resize 240x320 animated weather to 480x640 and 480x800!

http://rapidshare.com/files/223495721/resized_animated_480x640.zip.html

http://rapidshare.com/files/223495722/resized_animated_480x800.zip.html
[Windows Mobile Apps and Games] Eagle13:
Excuse for my English. Whether it is possible to make somehow so that on weather wall-papers were displayed not the near future, and the present condition and a condition of the nearest period was in a badge?
[Windows Mobile Apps and Games] motisu:
I've been using this script for ages and love it. I am playing around with WM6.5 with Titanium and the Showaco weather plugin. Has anybody thought of adapting the script to use the Titanium weather as the info source? The plugin already runs a mortscript to update the weather so I don't think it should be too hard to combine the 2 scripts into 1 that will do the update and change the S2u2 background at the same time. Anybody up to this?
[Windows Mobile Apps and Games] jekyll60:
Hallo together..

i´ve read this whole thread ( with my bad english .-) ) and dont find a answer to

my questions...

I have a touch pro ( t mobile Vario iv ) ( Raphael) orginal rom with touchflo 3d

Is there a chance to get this script working with the weather of touchflo 3d ?

( without yahoo or other weatherprogramms )

and another question: what makes the battery power ? ist it a batt killer ? or is

it ok ?

thank you for your help..

hope u can help me..