Go Back   xda-developers > Development and hacking > Development and Hacking

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 2nd May 2008, 12:21 PM
JeckyllHavok's Avatar
JeckyllHavok JeckyllHavok is offline
Senior Member
 
Join Date: Jul 2007
Posts: 667
Thumbs up It's done!!! Random Gif change in S2U2

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?mo...ew&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.
Reply With Quote
Sponsored Links

  #2  
Old 2nd May 2008, 12:39 PM
testdasi testdasi is offline
Member
 
Join Date: Aug 2007
Location: Oxford
Posts: 54
Default

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
__________________
Phone: O2 XDA Atom Life
ROM: PV ATOM LIFE WM 6.1 OS 5.2.19701
OS: WM6.1
UI: PointUI
Reply With Quote

  #3  
Old 4th May 2008, 12:39 AM
godson408's Avatar
godson408 godson408 is offline
Junior Member
 
Join Date: Apr 2008
Posts: 18
Default

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?????
Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:32 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.