09-19-2010, 11:29 AM
|
|
N00b
Offline
|
|
Join Date: Sep 2008
Posts: 32
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
|
|
Re: |RHODCMDA|.¸¸.·´¯`·.¸¸.- Energy -.¸¸.·´¯ * |Sep 18| 21916|23138 * Sense 2018
Here is a simple Mortscript I wrote to randomly change the Home Tab wallpaper each time your phone turns on.
I know there are many other solutions to do this. However, I’m learning Mortscript and this was a fun exercise.
I’ve taken some shortcuts by hard-coding a few things. First, this will only work on ROM’s using Co0kie’s Home Tab Editor. Second, it uses the default wallpaper location “\My Documents\My Wallpapers” (you can change this by editing the script). This is where NGR puts his wallpapers. Third, and finally, it only loads PNG files (you can change this too). Again, this is the standard used by NRG.
I use it on 21xxx ROMs. I think it will work on 23xxx’s also. Maybe someone can let me know.
To use it… UnZIP the RandomWallpaper.mscr file and put it somewhere on your phone. Mortscript is burned into all NRG ROMs, so you don’t have to load anything else. I put it on my storage card so it will survive a flash. Use Total Commander to create a shortcut from the RandomWallpaper.mscr file and save it to \Windows\Startup. Anything added to this folder will run each time the phone is started, just like Windows.
Now, every time your phone is rebooted you’ll have a different wallpaper. Add your favorite wallpapers, as PNG files, to the “\My Documents\My Wallpapers” folder and they will automatically be added to the random feature.
I release this code to the public domain. You may modify it any way you like. I hope it encourages you to learn a little scripting. It’s very handy!
Here is a link to the Mortscript website. Again, you don’t need to install Mortscript on a NRG ROM. But, this site will provide the documentation support to help you.
ENJOY!
__________________
ROM: Energy 21916 | Titanium | Oct.15 | SPB Mobile Shell
Page Pool: 16 | Compact Start Menu | Over 100 MB Free
Overclock: 729.6 MHz on battery & 787 MHz on AC
|