yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Apps and Games] S.V.I:
which verion of manila are you running?

I have the latest one. also have HTCPhotopicker.exe to be able to change wallpaper from the setting tab.

Pimg, file explorer, and photo picker are all able to change my wallpaper. I do not think that it has to do with hardware, or SYS software.

It might need to be hooked through the file explorer's context menu... which ever one that is.

I tried your script with the latest stable mort and the latest beta. beta gave me error.

another thing is that there might be something that renames the file to jpg format?

I dont know. really confused. also, I cant get it to reproduce the reg settings. If I try to use any of the above mentioned programs to change my wallpaper, anytime I update the weather the script does not change the reg either.

wceload.exe maybe?
[Windows Mobile Apps and Games] RoryB:
I am using version 23. Check the registry path to the weather icon.

The 242 in the sendmessage was Hex, but I had to change it to decimal to work in my phone.

One thing I think I figured out is I had to go to settings and pick a gif file to set to the background. Then I ran the script. If I did not it did not work.
[Windows Mobile Apps and Games] superflysocal:
I made a script for something similar for S2U2 (and it's in English). You can see if this helps you out. I also have the images you need. Go look:

http://xdaforums.com/showthread.php?t=390841&highlight=weatherwallpaper
[Windows Mobile Apps and Games] RoryB:
I am trying to set the script to set up today background if you do not have it already, but I am running into a problem with this line

Runwait( "ctlpnl.exe", "cplmain.cpl,13")

I even tried this shortcut outside of mortscript

#21ctlpnl cplmain.cpl,13

They both open the control panel, but when I click OK after setting background it closes without setting the background. Can someone else try to see if they have the same problem. It does work if I uncheck the box in that the wallpaper goes away.
[Windows Mobile Apps and Games] RoryB:
Thank you for this I am working on the notification que method of repeating.
[Windows Mobile Apps and Games] S.V.I:
Dear S.V.I,

You are subscribed to the thread "[12.07.2009, v 1.4.4] Wallpaper changer" by 6ITdtvFQqY, there have been 1 post(s) to this thread, the last poster was 6ITdtvFQqY.

http://xdaforums.com/showthread.php?t=484552

These following posts were made to the thread:

************

http://xdaforums.com/showthread.php?p=4339327#post4339327

Posted by: 6ITdtvFQqY

On: 16th August 2009 01:45 AM

---Quote (Originally by S.V.I)---

what exactly does your program do tochange the wallpaper?

does it copy the file and rename it?

what actually sets the walpaper and refreshes it?

how can we replicate thi process and make it work?

---End Quote---

You can look at the source code, in file "HaraWork \ SourceCode_VS \ Wallperizer \ Wallperizer \ MainForm.cs", the "void SetNativeWallpaper" method.

There are lots of steps and they have to be followed exactly, or else either Windows Today or Manila do not show the wallpaper. Just as an example, Manila refuses to show the wallpaper if the "HKCU \ Software \ Microsoft \ Today \ Wall" registry key is not set with whatever text.

By the way, I don't think PNGs are supported by the OS. You must copy the wallpaper in the "Windows" directory as BMP or JPEG (GIF works too). Note that the file name is specific, you can't use anything you want; "tdywater_[screen width]_[screen height]" is the name. The file name is created in the "string GetWallpaperFileName" method.

(Be sure to remove the read-only attribute of the "tdywater" / "stwater" files before you try to overwrite them.)

All the best,

xda-developers

---------------------------------------------------------------

So, maybe it is posible to copy the wallpaper (weather png) and rename the extension to GIF? that should be posible as the MSdialer that I use i saved a PNG's with .GIF extension.
[Windows Mobile Apps and Games] RoryB:
The copy as gif is exactly what I worked out.

Since I have not been able to get the today setting control panel to save the settings, I just have the program notify you to make the settings and then it quits.

I have it running and it seems to work fine.

I fixed the routine in a way. It tells to you set the today background and waits for you to do it before continuing. It even drops down the start menu for you.
[Windows Mobile Apps and Games] S.V.I:
it works!!! I'm as giddy as a school girl on acid! have you ever seen one of those? I went to art school... I can tell you it's quite a site!

THANK YOU!

I go fix gfx now :D
[Windows Mobile Apps and Games] xlinkx:
Do you have a cab for this?
[Windows Mobile Apps and Games] xlinkx:
Any progress with this project? Can you please make a wvga version as well as vga. Thank you.
[Windows Mobile Apps and Games] S.V.I:
not yet. need to wait 30min or so to make sure the 320x320 png's are working. also, since i am not sure how mort handles scripts i am not sure if i need to have a shortcut (?) startup?

i just finished resizing the canvas on all 44 images, and dropped them into my windows folder. so i am waiting. :)
[Windows Mobile Apps and Games] S.V.I:
I updated the first post with a beta cab. please read the post.:)
[Windows Mobile Apps and Games] RoryB:
You could create a shortcut to the mortscript in \windows\startup so anytime you do a soft reset the weather wallpaper will get updated and restart the timed refresh.

But since it is a notification que routine, it will not get lost in a soft reset, so you could run it from anywhere and forget about it.

Also, if the routine is already started and you run the script again, it cleans out any previous notification que versions so there is always only one. So, if you decide to set the refresh time to something longer and then want to get a quick update you could run the script without causing problems.

I owe all these great notification que features to SuperFLySoCal who shared a link to his S2U2 wallpaper changer.
[Windows Mobile Apps and Games] S.V.I:
i seems to be working ok on m kaiser so far.

I did not set the image to be 300x300 though. the are 240 x 268.

I figured out a trick in manila with the walpaper rotation bug, and the slider.

If you set your resolution to 320 x 294 for portrait and 320 x 194 you can get the slider down 26 pxels lower; and have mania wallpaper not cut off after 240 pixels provided your image is 320 wide..

now we need to figure out how to triger the weather update b it self. I tried setting the "bootup" string in regitry to 1 but I did not see it update this morning.. it used to do it as I remember. :/
[Windows Mobile Apps and Games] RoryB:
When I pick the start menu, the sun shows, but the black background becomes white. I tried changing the white backround in the png file to black and then setting it to transparent, but that did not look pretty. I tried not having the backgound transparent and that covered the Word "WEATHER" on the tab, but it worked well in the start menu. Maybe need some adjustments.
[Windows Mobile Apps and Games] wapvirus:
The CAB wont install for me any chance of a zip file and i will make a cab file on WinCECAB ;) also does this need mortscript as you don't say in your post :)
[Windows Mobile Apps and Games] S.V.I:
I did say that it needs mortscript in the post.

you can use wince cab manager to extract the fies out of he cab. that is what I built the cab with.

did you disable manila before installing like I said in the first post?

you may need to extract the files and use activesync to copy he files as I am sure our rom was built with the latest bepe kitchen (where buildOS makes almost all files read only and system atributes.
[Windows Mobile Apps and Games] RoryB:
Took care of the text issue. Script now changes text to black to show up against the white. Also, cleaned up the unused parts and added comments.

See newer fix here
[Windows Mobile Apps and Games] ai6908:
Wow S.V.I...this is neat...will give it a whirl when I install M2D in my ROM.:D
[Windows Mobile Apps and Games] S.V.I:
are you talking about the today text on white background? (when you diable manila?)
[Windows Mobile Apps and Games] r0sh:
did everything as told.. have newest mortscript n m2d newest...disabled... and this beta cab wont install at all...says unsuccessful... any ideas??
[Windows Mobile Apps and Games] S.V.I:
I think that I will have to put it in a zip file next time o you can overwrite the files with activesync.

i finally got the images the right size (a crap load of work I might add) however I have to edit the xml o that the weather does not cover up some of the text in the weather panel.

YOU ALO HAVE TO SET YOUR MANILA CLOCK TO ANALOGUE.

AND FIRST SELECT A GIF FILE AS YOUR TODAY BAKGROUND.

I will provide better instructions next time (sorry)

I will also provide the weather panel and the clock panel so you can edit the xml... hell I might even provide a whole theme that I was planing to keep to my self... but this is worth it.

sorry to make you wait, but I am in the process of moving again.
[Windows Mobile Apps and Games] RoryB:
For some reason when I have the weather picture as a today background, the start menu background is white. The start menu text was white too. So I added to the script to change the start menu text to be black.

Was no one else having a problem of the start menu background being white when the today background is a weather image?

Oh yeah I see that if I close M2D, the standard today screen does have a white background too.
[Windows Mobile Apps and Games] S.V.I:
dude I pent 4 hour last night fixing the weather graphics after blowing them up to 150 percent.. I was tring to save them a a 24bit png, but the file sizes were over 60kb! Don't panic though, I managed to cut them bak down to what they used to be so they can still fit in your wizard. problem now is that they cover up the city text and weather description. Soon as I edit the xml I will upload them.

so I have been thinking..... I eem to remember reading my registry something about "tsk allowed" line with several formats including gif and jpg. I have to find that line again, but with so many formats to choose from it mght be possible o copy the file with some other extension.. I think you can see where I am going with this. I will keep trying different formats to see which tpe of file will get a black background..
[Windows Mobile Apps and Games] RoryB:
That might give us some options.

Maybe white.gif and black.??? as the start background so depending if you want white start menu background with black text or black start menu background with white text.

Life would be a lot easier if we could force today background without having to start with one already there.

I am still trying to find a setting that stops tilemode in the today background. If we could do this we could go back to the original weather icons.
[Windows Mobile Apps and Games] RoryB:
UPDATE

Okay I figured out how to change the today background without affecting the start menu background.

Also, I got rid of the need to run a gif background first.

I noticed HH_WEATHER_09.png was missing from my M2D and your files. Here is the original I created from the small version.

There were other ones missing, but I did not have a small version either.

I am still renaming the png to gif since the default tdywater file is a gif file. I am copying HH_WEATHER_##.png to be tdywater_240_320.gif and tdywater_320_240.gif in windows and refreshing the today screen.

I assume for other than QVGA devices I could add a feature to determine which device and rename the files accordingly, but the images would have to be sized for the device. I still cannot find how to avoid tilemode other than the image size. Athough it does sound like if the image is too large it just gets cropped. So we cound make the images large enough for the largest one needed and let it be cropped for smaller formats. the main thing is the size of the icon image itself.

Fixed script for when someone already has a today background running.
[Windows Mobile Apps and Games] S.V.I:
the issue wit the sizeand te colors i this: If I make the png file non tranparent or too big, then te name of the city and the weather description gets covered up in manila. otherwise I would have done it already.

as for the missing files: those are the file that came with the mega manila package. there might be some missing, but that can be resolved once I either figure out the xml or this tranparency issue.

I am going to try to upload m new images today from the road if opera mini or pie will let me.
[Windows Mobile Apps and Games] RoryB:
Everything works fine for me now. If you can try the new script.

Sorry, another fix. I flashed my ROM and started the script before there was an icon in the registry.

Added a wait for the icon to get set in the registry and I had to update which registry value to look at as a sign that the today background is already set.
[Windows Mobile Apps and Games] S.V.I:
manila XML. these are the edits that You have to make:

Some of the lines in the home tab Have to be edited like below

The weather panel can be copied and pasted (solves landscape issues)

This is not the final weather tab. I still have to edit some stuff.

I have a feeling that the reason that some people are having issues not seing it on their today screen, is that the digital clock overlaps the background. so it has to be analogue.

The HOME tab xml (If you edit just the lines below) should fix your analogue clock for both analogue and digital.

Then you need to edit registry:

[HKEY_LOCAL_MACHINE\Software\HTC\Manila2D\Home]

"ClockType"=dword:00000000
[Windows Mobile Apps and Games] S.V.I:
The new script tells me to uncheck the the box and click ok. this sets the background from my tsk (which happens to be a jpeg) I still need to set a gif as my today background. I guess could edit my tsk?? Oh, and I liked the previous file better. no UI popping up.

I also checked the registry, and saw that PNG's are not supported after all. So I will have to figure out something else for this... maybe I can move the text that the weather covers... OH, I just figured it out!!!!!!!

Maybe if I make a black background layer, but set the transparency to almost non existant... like 5% or less, the OS will get confused and make a black background.... I hope that will work. soon as I get a chance I will do that

Here are the updated GFX scaled to 150% and still transparent (BUT, take just as much space:cool: 'cause I'm smart like that;))
[Windows Mobile Apps and Games] RoryB:
I am working toward it not caring whether or not if today background is already started.
[Windows Mobile Apps and Games] S.V.I:
cool. I have to shut the laptop off and hit the road. Talk to you laterz :)
[Windows Mobile Apps and Games] RoryB:
I think this one's got it. It should not matter if you have a today background running or not.

Updated it this morning. I noticed it wiped the current background even if the weather icon had not changed.

Now it seems to be running smooth.
[Windows Mobile Apps and Games] RoryB:
Here is a version that catches that you have no weather icon instead of being stuck in a loop waiting for one. It will set the icon to "nodata" and run again later as if it found an icon. Here is my week attemp at fixing the image file.
[Windows Mobile Apps and Games] S.V.I:
That's pretty cool. didn't think of that. Going to try it asap.

The file before that changed the background to stwaterXXX, but it was still the jpeg from my tsk.

Maybe it is possible to get a small gif file and set it as the background first with the script, then change the background to the weather...

For exaple 4x4.gif becomes stwater and then HHweather_##.png becomes a gif and gets set as the stwater.gif.

I still have not had the time to make an attempt at a full black background. :o
[Windows Mobile Apps and Games] RoryB:
What I am doing now is leaving the start menu wallpaper files (stwater_240_320.gif and stwater_320_240.gif) unchanged from what ever they are before running the script.

I only remove registry values associated with the today background and overwrite the today background images (tdywater_240_320.gif and tdywater_320_240.gif) to get the weather showing. I copy the png file to be gif files because the default file cooked in the ROM is tdywater.gif that is converted to the wallpaper files.

If I set the today background to a png file through settings, the tdywater files are deleted and the stwater files are generated as png files. So I just tried a rewrite of the script to copy HH_WEATHER_xx.png to be tdywater_240_320.png and tdywater_320_240.png. It works. Here is the update.

So now we only update the today background image and do not change the start menu background. So it no longer needs a black background behind the sun, clouds, etc.

Now if we can find a command line to use runwait to force M2D to update the weather before checking the icon.
[Windows Mobile Apps and Games] S.V.I:
work well, but I still have to et the today wallpaper to a gif manualy.

are you till in 6.1? becaue on 6.5 all the tsk have jpegs
[Windows Mobile Apps and Games] RoryB:
I have stayed in 6.1 for stability.

Walk me through the steps you have to do to get it to work.

I do not have to do anything now. It can have a today background already set or not. It does not matter, it works.

I now save the weather png files to be the today backgound files in png format. Maybe something with 6.5 that's different.

Try unchecking the today background box, picking ok and then looking in the windows folder for tdywater*.* and stwater*.* files and tell me what they are.

Also, look in HKCU\Software\Microsoft\Today for what the registry values are. Or maybe use ceregedit to get the difference between registry without and with a today background.
[Windows Mobile Apps and Games] S.V.I:
all of the TSK files that come with 6.5 OS have .jpg's in them instead of .gif like in 5.0-6.1.

This means that I have to set the background to a GIF file; wait for it to set; then run the script to set the wallpaper to a weather PNG.

So in order for this to work for 6.5

(where the files are marked read only / System by either the os or the new BuildOS in the Bepe kitchen)

The following has to be done:

1. set GIF file as the background (this has to be an actual GIF)

1.b. refresh

2. Set the weather png as the background in GIF format (fake gif)

2.b refresh

also, the last scrpt seems to have trouble going from the Nodata to Icon##

The error I get is that I need to check the weather panel because there appears to be no weather icon set. (actually I just set it about 5 min ago)

Which is why I think that it needs to have a "reset GIF" a small gif file about 4x4pxl that can be tiled to make a real gif background. set that blank background, then the png.

I know that it seems strange. however the stwater.jpg exists in my windows folder. without the box "use this background". it is the jpg from my tsk. manila goes back to i'ts own background.

So I assume that the box has to be checked, and the file has to be GIF so that the script can overwrite the GIFfile with the PNGicon.

TSK's for 6.5 do not get extracted as GIF files. they keep their extension. I think that is the big difference between the OS's.

I think I am going to take a closer look at the scrpt and the registry for a while to see where the problem lies. + you have beeen writing a couple of them a day and everything works on yours just fine. there is no sense writing another one not seing it on 6.5. :)

I am really greatfull for this you know.:)
[Windows Mobile Apps and Games] RoryB:
A couple scripts to try for WM 6.5

They do not set themselves to repeat for now.

What file extension does the tdywater file cooked into the ROM have?

The only other thing I can think of is the registries might be a little different.
[Windows Mobile Apps and Games] S.V.I:
both of these did not work. in the today screen settings it had file name HH_Weather_ So I guess it will not do jpegs.

There is also no tdwater there is just stwater. the start menu is fullscreen on most roms (I use QuickMenu) and uses the same image for the honeycomb.

When I uncheck the box, the stwater from my tsk shows up in manila. as soon as I run the scripts it goes back to the manila background.

I still think that the first thing that it needs to do is set a real gif file for the background, wait for refresh then set the weather.png on top of it and refresh.

One of the scripts worked perfectly with refreshing the weather png one on top of the other, then last night you uploaded a script that kept popping up while I was driving and listening to music. so it must have been failing to refresh. this morning it was failing to switch from the Nodata to HH_Weather_##.

I need to find that script again for backup.

I think I should just send you my tsk so you can see the difference. You can open it with winCE Cab Manager and see what it does. I might send you bothe the original and the one I made. just in about an hour or so, I need to pull out MY computer to do that. at the same time I will just make a tsk that has GIF's in it.:)

EDIT: it worked. set it as jpeg!!! I see the moon with a cloud over philladelphia!

weird. I will try it again and see what happens and report.

EDIT 2: added some tsk's You can open them with wince cabmanager, or rename them to CAB and you might be able to use ervius package creator to unpack them. You wanted to see what the difference between the tsk's is, well, it is a whole lot of extra files and registries. most of the files are not there.. I have never tried to pack all of them into a tsk... I should some day.:)

I changed the TSK extension to ZIP so that they would upload.
[Windows Mobile Apps and Games] RoryB:
It seems the R and Classic Blue files only have stwater files. So maybe for WM6.5 we need to use the stwater files instead of the tdywater files I have been using. The reason I went to the tdywater files is in WM6.1 this changes the today background without changing the start menu background. That is how I avoided the problem with the transparent background looking white on the start menu.

I notice the dragon has the 2 stwater files plus 2 tdywater files. Since they look the same, we would not know if 6.5 actually uses the tdywater files. Only way to know is to have a theme that the stwater and tdywater files look different and then see if the start menu looks different than the today screen.

Two more trials.

Another one
[Windows Mobile Apps and Games] S.V.I:
JPG 3. did nothing.

JPG 4. set my background to tsk file (and box was cheked to HH_Weather_ -no number?)

Trial. Did exactly what it was supposed to.

I swtched tsk's between every test. and checked for notifications in DFaskmanager and deleted them first

so I guess it works now. I did not see a notification for the new files even te trial. did you take them out?
[Windows Mobile Apps and Games] RoryB:
Yes I removed all but the bare minimum to check the commands to get the image. I will upload a full working version soon.
[Windows Mobile Apps and Games] S.V.I:
You ROCK! I can't wait. :)
[Windows Mobile Apps and Games] RoryB:
I think this has it. Another thing I learned is sometimes the tdywater, etc files get set readonly, so I added a parser to remove read only setting.

Let me know if this works.