yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Development and Hacking General] Jumba:
Aha, I got it!

I've found if you're using a Today theme (selectable by going to Settings -> Today) it won't let you choose a file in the Windows folder to use as the background.

If you have a theme selected (eg GlossBlack) and don't have "Use this picture as the background" selected then it removes the "Wall" key entirely from the registry. If you then select "Use this picture as the background" it won't let you choose any file in /Windows to use as the background.

I found I had to manually edit the registry value to read "\Windows\stwater_240_400.jpg" - then changed the skin and ran an update.

It's now working! But I think other people may run into issues if this registry key doesn't exist on their devices. Maybe there's another way around this? One possible solution is to do a check if the key exists first and then create it if it doesn't.
[Windows Mobile Development and Hacking General] MichelDiamond:
Cool :) Thanx for the exact description also! :)

Yeah - there can be made any improvement to any script in the Library.

It's only Version 1.0 of weatherbackgroundchanger - and I also intended to make a check if the weather has changed - otherwise he shouldn't change the Wallpaper at all.

I will have a look - but there must be an other Registry-Key, which describes it (which Registry Value did you change?)

To get a .png instead of a .jpg would be easy... just rename ;) Titanium is in this case very nice to the programmers.

But ok - the weatherbackgroundchanger is only one example for the JMLLibrary... but now I'm confirmed - the JMLLibrary works - and the .cab installs the Directory-Structure and Registry-Values abolutely correct. :)

So we can go on with the other AddOns - who has fun in programming some little MortScripts - here's some MortScripts we need:

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

Please take a little time (I would estimate it wouldn't take even a half hour to make the "easy" scripts and test it) and try yourself on one of this Scripts - some are totally easy and with the example here - no problem to make it. Also for people who have never programmed with MortScript - learning by doing.

I will add your Scripts to the JMLLibrary (with highlighting your name of course) - there's nothing more to do for you.

The Skinners can use your Scripts in Library like they want afterwards.
[Windows Mobile Development and Hacking General] Jumba:
As mentioned all I did was manually add the String "Wall" with the value \Windows\stwater_240_400.jpg

;)

Looking forward to more scripts. I've never made one myself, but I suppose there's only one way to start.
[Windows Mobile Development and Hacking General] lro2005:
Great Job!
[Windows Mobile Development and Hacking General] nuuuuts:
+1 regarding the reg key. I tried installing S2V but it wont let me view pictures in the \windows folder, it displays the folders but nothing within the windows folder.

could you provide additional information on where we need to add the reg key.

thanks
[Windows Mobile Development and Hacking General] MichelDiamond:
In Post #2 is the source code of the BackgroundChanger V1.0 - the link is: HKCU\Software\Microsoft\Today\Wall

But it's only read, to know, where the wallpaper is to find.

I have another .tsk, which doesn't change the Windows-Default - so it worked. But it don't work, if this Value is not set.

I o wanted to make an 2.0 of WeatherBackgroundChanger, that it only changes the wallpaper, if the weather would cause annother wallpaper.

It's only an Examp for the JMLLibrary, that everybody can help to expand it. And only to update the Library for one script... (change meanwhile the String manually)

We really need some simple mortscripts for this Library - because of your and our ideas:

-> click here and have a look if you can help or have further ideas, which should be in the Library <-

If I have 1-2 more Library Items (most wished: "isNight" at 3. and "Next Alarm within the next 24 hours" at 12. ) then I will add the weatherbackgroundchanger 2.0 to the next Update of JMLLibrary, too.

Micha
[Windows Mobile Development and Hacking General] nuuuuts:
@Michel thanks for creating the library and the application, it works great. I look forward to seeing what you have in stored for us in the future. I'll take a look at the add-ons, hopefully I can help out, not that great of a programmer but took a class several years ago, maybe it will come back to me.

@Jumba - thanks for figuring out that issue with the use background image, everything works great.

would you be able to provide some information about the time near the weather information. Is not the time that I last checked for an update. Could it be something with msn, when msn last got their information?

THANKS A LOT!!!!
[Windows Mobile Development and Hacking General] MichelDiamond:
JMLToday is programmed by JMHL - I develop and regulate the things around and we coordinate each other, what should be new and how it's gonna be to achieve :) (and: My English is better than this from JMHL - but his C++ is very well :) )

Ehm-yes - you don't get the time of your last update - you see the time, when the weather feed was last time updated for "current" weather. It's a little bit more "honest" than accuweather ;)

Thank you for the possibility to help - some scripts are really easy - also if you'd never developed or it was a long time ago... (and MortScript has a very good manual to find needed Commands very easy with examples: *click* )

One question not to oversee something - to all who read it:

Which Task-Theme (.tsk) do you use and what's the value of your "HKCU\Software\Microsoft\Today\Wall" ?

(Or where else do you find your wallpaper in registry? )

Would help to improve weatherbackgroundchanger.

Thanx

Micha
[Windows Mobile Development and Hacking General] nuuuuts:
I've attached an image of what them i'm currently using. I'm using NFSFAN's rom 0109 rom. The theme says it's NFS Modern theme.

the stwater_480_640.jpg file is located in the windows folder. Used touch commander and created a new string as Jumba mentioned and add I added the information he provided.

the value for the wall is: \windows\stwater_480_640.jpg no quotes
[Windows Mobile Development and Hacking General] MichelDiamond:
Thanx for information,

I made a new version of weatherbackgroundchanger 2.0 (you still need JMLLibrary 0.1 and a skin which uses the weatherbackgroundchanger)

Changes:

- remembers the last Background and so only change if the weather change

- Set in Registry explicit the Wallpaper to /windows/stwater_<your resolution> , because some .tsk uses another.

But it's possible that some Tasks sets some other Values, that stwater won't be loaded - but perhaps these are Task, which don't allow an automatic set of another wallpaper - then you should have a look in the Settings of your Home (Start->Settings->Home(Settings) ) and choose the stwater_... in your windows directory as Wallpaper.

I don'T want to change other Keys which could make it, because .tsk could be incompatible. It's better to have the secure method - but I think it should work on the most .tsk ... and a simple Settings-Change for some other.. is ok :)

Would somebody please try it, before I cab the new Library? (only overwrite the file in JMLLibrary with the file in attachment) Thanx for feedback (PN or here)
[Windows Mobile Development and Hacking General] MichelDiamond:
Thank you for the PNs - Version 0.2 of JMLLibrary now uploaded:

http://xdaforums.com/showpost.php?p=4191732&postcount=2
[Windows Mobile Development and Hacking General] AGxM:
Cannot get this to work :(

Loaded the Library version 2.

Copied the plg and the mscr to JHML Today folder

Have changed wallpaper to stwater, checked the registry and have the graphic files in place but wallpaper stays as my default one.

Am I missing something simple here?
[Windows Mobile Development and Hacking General] MichelDiamond:
at first: Check if the JMLSpecial-Filename is correct.

Then please have a look to stwater_... .jpg - which graphic is inside?

I mentioned that windows mobile 6.5 don't tellyou the right Wallpaper which it uses sometimes...

The you must go to your home settings and explicit choose stwater...jpg as Wallpaper and set the "checkmark" for "use this...."

Are you sure, that there is a ".jpg" which is in your windowsdirectory?

And please have a look with CHome-Editor into JMLToday - there must be 2 Values

HKLM,Software\Microsoft\CHome\JMLToday-> JMLLibraryPath = Program Files\JMLLibrary

and

HKLM,Software\Microsoft\CHome\JMLToday-> CommonGraphicPath = Program Files\JMLLibrary\Graphics\common

Or very simple - could you try the standard -.tsk-File if it works?

It's really a mysterium, why on some .tsk it doesn't work.

All what Jumba and nuuuts said, have you tried?

(if you know Mortscript - you can have put " message("Hallo1") " in the scripts on some places to have a look, if the Scripts are really called) And rememeber - in 2.0 the wallpaper will only be changed, whe the weather changes - and so perhaps it jumps out before it do anything.

Edit: Set any wallpaper with S2V as Today portrait - then the keys should be overwritten, too. And then try weatherbackgroundchanger (if you change "Icon" in Page1 you can simulate an other weather).

My feedback is so long, that 2.0 works on almost all .tsk - but not on all .tsk
[Windows Mobile Development and Hacking General] AGxM:
Michel

Thanks - all now working. een a bit boring with wallpapers but can now experiment a bit more visually at the weekend.
[Windows Mobile Development and Hacking General] MichelDiamond:
Fine :) Which of the hints have helped, that it worked?

The wallpapers looks really great!

I have forgotten to say something: The JMLLibrary-Cab's concept is made in that way, that it doesn't overwrite existing images in "common" or "essential", if it's updated.

So everybody can change the graphics like he wants - they will remain. My pics were only examples - some people perhaps other favorites (perhaps without Weather-Pics, too) - and the wallpaperchanger can be used to swap between this graphics,too. Espcially if you use other resolutions - it won't be overwritten. Whatever you want :)

But I think I will use your Wallpapers now - they are looking really nice - and I'm sure, that some other users will use it, too (Do you have 'e without WestHam? Not that I don't like it... but you know... germany :) But if England will be Champion next year I will take it-and you must take the Graphics with German Pics, if we will be Champion, ok? *g* But I must say - the English premier league,is the best of the world)

Thank you

Micha
[Windows Mobile Development and Hacking General] AGxM:
Thanks Micha

I think it was the registry setting which did it - adding the stwater string.

Hmm I've changed theme and the weather skin doesn't work again.......more back to the drawing board.
[Windows Mobile Development and Hacking General] MichelDiamond:
Yes, because the other theme doesn't have a JMLSpecial...<Theme name>.mscr

So the Library isn't called. Only copy the JMLSpecial_weatherback.mscr according Post #2 and #3
[Windows Mobile Development and Hacking General] AGxM:
I meant phone theme, not JMHL today skin.
[Windows Mobile Development and Hacking General] Jumba:
Is the theme GlossBlack by any chance? I'm wondering if there are some themes that override the wallpaper entirely, even when you have "Wall" set in the reg.
[Windows Mobile Development and Hacking General] AGxM:
Not GlossBlack but M Carroll's other black theme.....no worries will watch for new developments not sure I like the weather idea and not up to writing my own script yet
[Windows Mobile Development and Hacking General] MichelDiamond:
There are so many themes available - and every author of the Themes use sometimes very special Scripts for background -if it doesn't work with one Theme (.tsk) - rhaps it would be good to ask the author.

I think that's setting the Wallpaper with S2V would set some of the keys todefault, so that it works with other Themes, too.

JMLLibrary is for special wishes, which can be used or not - it's a service for the Skinners, who can use it to make special Skins for the users, who like it.
[Windows Mobile Development and Hacking General] Jumba:
Hi, so I've managed to get the isNight script working to replace the clock between 20:00 and 06:00. I'm just having one issue - how to get it to auto-update. I've tried enclosing the code between "While" tags, like so...

While ( 1 )

...

Sleep 30000
EndWhile

But the problem is that it won't let me run Update again - it looks like it's looping and not allowing other mortscripts to run.

If I remove the "While" tags it works fine - but only when I hit Update. The script doesn't continuously keep monitoring the time.

This is how my JMLSpecial looks...

While ( 1 )

########################### Call in Library JMLLib_isNight.mscr

libspecial = LibraryPath&"\JMLLib_isNight.mscr"
if (FileExists(libspecial))
CallScript(libspecial)
endif

########################### Check the registry

clockpath = RegRead("HKLM","Software\Microsoft\CHome\JMLToday","clockA")

daynight = RegRead("HKLM","Software\Microsoft\CHome\JMLToday","isNight")

########################### Is it a new clock?

if (not FileExists("\Program Files\JMLToday\"&clockpath&"\clock_bg_b.png") )
copy ("\Program Files\JMLToday\"&clockpath&"\clock_bg.png","\Program Files\JMLToday\"&clockpath&"\clock_bg_b.png",1)
endif

########################### Do the change

if (not RegValueExists("HKLM","Software\Microsoft\CHome\JMLToday\Page1","isseta") )
RegWriteString ("HKLM","Software\Microsoft\CHome\JMLToday\Page1","isseta","0")
endif

if (not RegValueExists("HKLM","Software\Microsoft\CHome\JMLToday\Page1","issetb") )
RegWriteString ("HKLM","Software\Microsoft\CHome\JMLToday\Page1","issetb","0")
endif

isseta = RegRead("HKLM","Software\Microsoft\CHome\JMLToday\Page1","isseta")
issetb = RegRead("HKLM","Software\Microsoft\CHome\JMLToday\Page1","issetb")

if (daynight=1)
if (isseta=0)

copy ( CommonGraphicPath&"\isnight\clock_bg.png","\Program Files\JMLToday\"&clockpath&"\clock_bg.png",1 )
RegWriteString ("HKLM","Software\Microsoft\CHome\JMLToday\Page1","isseta","1")
RegWriteString ("HKLM","Software\Microsoft\CHome\JMLToday\Page1","issetb","0")

Sleep(500)
RedrawToday

endif
endif

if (daynight=0)
if (issetb=0)

copy ("\Program Files\JMLToday\"&clockpath&"\clock_bg_b.png","\Program Files\JMLToday\"&clockpath&"\clock_bg.png",1)
RegWriteString ("HKLM","Software\Microsoft\CHome\JMLToday\Page1","issetb","1")
RegWriteString ("HKLM","Software\Microsoft\CHome\JMLToday\Page1","isseta","0")

Sleep(500)
RedrawToday

endif
endif

Sleep 30000

EndWhile
[Windows Mobile Development and Hacking General] MichelDiamond:
JMLSpecial is called while Updating - no automatic in 5.3 or another calling.

Of course you could do a 24/7 mortscript, but I would almost never recommend such a script. (And your problem: Each mortscript can only run once at the time - and JMLToday tries to run it again - it's an implicit protection before While(1)'s in Special :) )

The only automation in 5.3 is the one-day-update - which also calls the JMLSpecial.

You would have to set this to 8 pm and on 8 pm you should change it to 6pm with the JMLSpecial.

But the user has also it own Update Time, too, so his should be considered.

But therefore, that's no internet necessary for an update, everybody could press "Update" manually,because he's anyway looking on the clock.

And in next JMLToday-Verson we will have a look, how we get a better solution for this (24/7-Loops should be done by JMLToday itself in C++-Code)

We must be sure, that the automatic scripts are light and easy to use - because one of the primary goals of JMLToday is to use very low battery and almost no performance issues.

OK for you, that we will have a look? - and for now - I personally wouldn't be disturbed by this manual update. But it's good to know,what can make JMLToday even better and better :)

Thank you
[Windows Mobile Development and Hacking General] nuuuuts:
i seem to having some issues using the analog clock with the weather background changer. I copied over the file to \Program Files\JML Today and it does say vga on it. It seems that it hangs lower than it should. If I enable the JML_Today_First, everything looks good, it moves up and displays the info.

I've attached a pic a of what the analog clock weather background changer looks like.

thanks
[Windows Mobile Development and Hacking General] MichelDiamond:
Oh... it hangs very low :) Sunset :)

Perhaps because of plg-Resizing (which .plg does cause this effect?) - please have a look into this .plg - perhaps only the Resolution was changed, but not the Positions. Which Resolution do you have? What did you copy to JMLToday?

I estimate, that's nothing to do with weatherbackgroundchanger - this will be only called from the Skin to change Background - it doen't make anything with design.

Only the wallpapers should be in your Resolution - have a look into JMLLibrary/graphics/common/weatherbackgroundchanger - they are all VGA. Convert it to your Resolution, e.g. with IrfanView on your deskop.
[Windows Mobile Development and Hacking General] nuuuuts:
My phone is a touch pro and it does have vga resolutions. I downloaded/copied over the .zip files from post 3

JML_WM7_Analog_weatherback_vga.zip and copied it to the \Program Files\JMLToday folder.

While looking at the other JML threads there was some info about downloading some application that will resize the .plg file, is that correct?

Thanks
[Windows Mobile Development and Hacking General] MichelDiamond:
Aah :) Now I understand! Everything with WM7in Skinname is for Titanium 7 Project. Compare with my introductions about Skins -> http://xdaforums.com/showpost.php?p=4191730&postcount=3

You use standard Titanium and so i's too low, because Tit7 uses double Panel Size and (unfortuntely) BronzeListView, too.

You should move each Item more than 120 Pixel upwards, to get it in normal size. The plg-Resizer would not help for that - the skin was orignially made for VGA - but only for Tit7.

Nothing to do with JMLLibrary/weatherbackgroundchanger.

Greetz

Micha
[Windows Mobile Development and Hacking General] ric69:
Arf sorry wrong thread !
[Windows Mobile Development and Hacking General] idtyu:
Hey , my place is SINGAPRE and how am i supposed to set the weather?
[Windows Mobile Development and Hacking General] MichelDiamond:
Perhaps somebody of the users which speaks your language should translate JMLToday - then you will have the whole surface in your mother-tongue

Singapore?

weather.msn.com -> Singapore = http://weather.msn.com/local.aspx?wealocations=wc:SNXX0006&q=Singapore%2c+SGP

Therefore: SNXX0006
[Windows Mobile Development and Hacking General] bigboy292000:
OK I must be very cofused... or something.

I can't get the weather changer to work?

I installed the latest library.

I then copied the "all resolutions" skin (my device is QVGA) into the JML folder.

I then went and restarted Titanium. Then installed the skin.

It all went well, but still - no background change? All I get is the default backgroud that came with the theme.

Then I went and created the Wall registry string and set it to stwater_240_320.jpg in Windows folder.

Still no joy - the default paper does not want to change?

I am using the "Ron Arad Orange" theme and the "use the wallpaper" is checked and it is pointing to the stwater paper. I also reloaded the skin about 20 times, restarted Titanium about 25 times and still nothing?

Using Vortex ROM v3... http://www.ppcgeeks.com/forums/showthread.php?t=74278 any ideas?

I also verified JLM registry settins to graphics and library, paths are correct...
[Windows Mobile Development and Hacking General] MichelDiamond:
The WeatherBackgroundchanger has some problems with some tsk - and there are some problems for the system, to handle it. But you used the WeatherBackgroundchanger from JMLLibrary 0.3?

I have posted the SourceCode, what it does.

Please check this - then we can have a look, what's the cause -also read the Posts here in Thread - there are already some solutions.

- Look into the JMLToday-Directory: Your Skin, which you choosed must also have the JMLSpecial_<your JMLToday-SkinName>.mscr in the Directory. And there must be the correct Link to the JMLLibrary with the weatherbackgroundchanger-Script - but allof this should bethere full-automatic. But please have a look

- Has your ROM perhaps a write protection in Windows? Look into the stwater<your res> -do you find there the Picture from the current weatherbackground? It must be there. If not - copy with total commander on of the Pics to Windows as stwater... afterwards there's no more write-protection.

- Try to update weather - and afterwardsselect manually the stwater... in Windows-Directory - will it be displayed?
[Windows Mobile Development and Hacking General] bigboy292000:
Ha, interesting...

Two things I did:

- There was JMLSpecial_JLMToday_<your JMLToday-SkinName> and I copied it and created JMLSpecial_<your JMLToday-SkinName>

- The stwater files WERE rea-only, and I fixed that too.

Then I went to reinstall the skin, updated and in few minutes - it kicked in and started working. :)

Thanks!!!
[Windows Mobile Development and Hacking General] MichelDiamond:
Cool - I'm glad that you managed it - now you will never oversee the current weather :)

This read-only in some ROMs is sometimes really annoying - but difficult to manage.

Thanx for your feedback - will help some others,too, I think

Micha
[Windows Mobile Development and Hacking General] previn:
This is a great script, which I cant quite get to work...

The files get changed when the weather icon changes but it wont refesh the background. So I can see the reg values are correct & the correct picture is in stwater but it doesn't refresh it.

If I go to home settings & select it manually it comes up straight away.

Any Ideas?

thanks
[Windows Mobile Development and Hacking General] AGxM:
Sadly I could never get this script to work either.....
[Windows Mobile Development and Hacking General] MichelDiamond:
@previn: Did you tried this, too: http://xdaforums.com/showpost.php?p=4242111&postcount=23 ?

I wanted to check it if I have WinMo 6.5 final-ROM. There must be some .tsk or something else, why it sometimes don't work on some devices. Direct choosing does the same. But I don't have this bug - and so it's hard to test - it's something like "blind" developing because of assumptions.

So - could you also have a look, if this .jpg is write-protected?

Perhaps we could find it out alltogether.

Micha
[Windows Mobile Development and Hacking General] previn:
The reg entries are all correct. Currently using Hikey's 23064 rom. I've tried built in themes & custom themes, all produce same result.

I've also changed script to point directly to the image files rather than stwater, the reg entries change & the home settings change but the screen doesn't refresh.

If I then go into the home settings & manually select the file that is already selected it then refreshes!

Everything in the script seems to work perfectly until the very last line, everything is correct but it just doesn't change without manually selecting. Is it perhaps the redarw command just doesnt somehow register that the wallpaper has changed, is there another command necessary to do this?

many thanks
[Windows Mobile Development and Hacking General] MichelDiamond:
I tried some different "Refreshes" / "Redraws" - but like I said - I saw no differences on my device - and I never heard, that one worked better, if backgroundchange didn't work.

If you search a little bit in board - I also never found a perfect solution for other Threads with similar problems - it seems to be a mistery :)

But: It's not the end - I will look for some "deeper" functions - perhaps the MSDN has something in store.

Did you have a look for write-protection on stwater-File?

But yes - here must be another command - otherwise a manual change wouldn't have an effect... but so far, I didn't found it somewhere...

If sombody has a hint (wceload perhaps?) - I always thought that RefreshToday only calls

::SendMessage(HWND_BROADCAST, WM_WININICHANGE, 0xF2, 0);

Mmh- I will look into...

Micha