PDA

View Full Version : It's done!!! Random Gif change in S2U2


JeckyllHavok
2nd May 2008, 12:21 PM
Hey Folks,
After some experimenting with MortScript, it's done.
I create a script that will automatically Change the gif files in S2U2 in a random Order.

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

########################
###S2U2 - Gif changer###
###Dr.Jeckyll - 2008 ###
########################

Repeat(9999)

If(ProcExists("iLock2.exe"))
Run("\Program Files\S2U2\iLock2.exe")
Sleep(1000)
SendOK()
EndIf

gif_nr = Rand(29) Change this Nr. to the number of gifs you want to use but +1

Copy("\Storage Card\My Pictures\"&%gif_nr%&".gif", "\Program Files\S2U2\gfx\Wallpaper.gif", TRUE) you can change the folder where the gif files are and you can change the installation folder of S2U2

Run("\Program Files\S2U2\iLock2.exe")

Sleep(3600000) every 1 hour the picture will change the time is in milliseconds

Run("\Program Files\S2U2\iLock2.exe")

Sleep(1500)

SendOK()

EndRepeat

--------------------------------------------------------------------------
Just copy the text between the lines in an empty document and rename it as S2U2GifChange.mscr


Installation:
1. Install MortScript, I use the latest beta from http://www.sto-helit.de/index.php?module=page&entry=ms_overview&action=view

2. Delete the iLock2.exe and the S2U2 exe from your Windows/Startup directory

3. Copy the script to the Startup directory.

4. Restart the device

You have to rename the gif files you would like to use to 1.gif, 2.gif, and so on, and you have to write the number of gifs +1 to the green marked point in the script.

When the message Ilock 2 and s2us are closed apperas, do nothing it will self close.

testdasi
2nd May 2008, 12:39 PM
Thanks for the effort. Just my 2 cents:
This script will run resident all the time and take up valuable memory and processing power.I think instead of doing a repeat loop, a better way is to simply queue the script in the notification queue.
The first if condition after repeat is to quit ilock which is not necessary. There is a restart command line parameter for S2U2.
chris.wilcox has another version here http://forum.xda-developers.com/showthread.php?t=389397

godson408
4th May 2008, 12:39 AM
hey, i just download the mortscropt and i a super noob and i change the wallpaper name with 1.gif 2.gif ect.., and the wallpaper are going to change randomly?????