PDA

View Full Version : [MORTSCRIPT] S2PC for iPhonetoday (Albumart yeha)


moesfeld
25th May 2009, 07:44 PM
Hi,
Since iPhonetoday is such a great today plugin I decided to add some more functionallity.

What does it do?:
Basicly it starts S2P minimizes it then starts playback and replaces the top 6 (or 8) icons with control/status icons for S2P and reverts to your original icons once S2P exits .

Features:
- Replaces top 6 or 8 icons with S2P control/status icons
- Refreshes icons on track change
- Display current album or artist
- Display current title
- Display current albumart
- Play/Pause, Volume up, Volume down, Next, Previous, Maximise S2P (Mute, Exit only on 8 icon setting)
- Energy saving option for stopping the script once the phone gets locked by S2U2
- revert to your original icons once S2P exits
- crops Artist/Album/Title if it is to long to be displayed by iPhonetoday
- If no titles are loaded into S2P it will show a reminder and maximize S2P
- creates a backup.xml on first run

Requirements:
- Mortscript (http://mort.sto-helit.de/index.php?module=download&action=list&category=2)
- S2P (http://forum.xda-developers.com/showthread.php?t=417511)
- iPhonetoday (http://forum.xda-developers.com/showthread.php?t=508429)

Installation:
- extract S2PC.zip
- edit the s2pc.ini to your desired settings
- copy the extracted content into \iPhonetoday\
- in iPhonetoday add an icon linking to \iPhonetoday\S2PC\start.mscr

Changelog:
(I will follow iPhonetoday version numbering so my v. 0.6.1 will be compatible to iPhonetoday 0.6.1)

- 0.6.1
-Initial release

Known Bugs:
- Sometimes the icon refreshing is slow (no solution on my side, sorry has to be done in iPhonetoday -> Refreshing icons from external exe)

- When using S2U2 to control your volume and/or to answer calls(when not locked). The script will revert your icons to original and exit the script when receiving a call and/or changing volume with s2u2.
I will try to convince A_C to add a "Device is locked" Registry value. If not I donīt see a solution for this other than not using s2u2 for calls/volume.


Last but not least
I used some programms from different sources i would like to thank

No Plugins Today (http://www.ictinus.com/NoPluginsToday/)
Mortscript (http://mort.sto-helit.de/index.php?module=download&action=list&category=2)
thebond (http://forum.xda-developers.com/showpost.php?p=3776128&postcount=246) for his volume control scripts.

moesfeld
25th May 2009, 07:50 PM
The s2pc.ini:

s2ppath=\Program Files\s2p\
Here you specify the folder where S2P is installed (mind the slashes).

s2pproblem=No music files are loaded into S2P. Please load music files and start playback.
Here you can edit the message that is displayed when no files are loaded into S2P.

s2pabort=Aborting S2PC
Here you can edit the message that is displayed when S2P aborts.

albumorartist=
Here you specify if album or artist shold be shown in the first row.
1 for album
0 for artist

pageselect=0
Here you specify on which page the controls sould be displayed (0 for the first page and so on) If the selected page doesnīt exist it will be displayed on the last page.

energysave=1
If this is set to 1 the script will revert your icons to original and exit the script when S2U2 locks the device.
!There is a bug in this function. When using S2U2 to control your volume and/or to answer calls(when not locked). The script will revert your icons to original and exit the script when receiving a call and/or changing volume with s2u2.
I will try to convince A_C to add a "Device is locked" Registry value. If not I donīt see a sollution for this other than not using s2u2 for calls/volume.

resumeafterunlock=1
If this is set to 1 and energysave is allso set to 1 the script will rerun on unlocking but only if the script already ran at locking

eighticons=0
If this is set to 1 8 Icons are displayed instead of 6

thebond
26th May 2009, 08:52 AM
great work dude....!!!!

thebond
26th May 2009, 11:27 AM
tried on htc touch (elfin) works gr8....???

cant we implement current time using same way..

moesfeld
26th May 2009, 11:44 AM
tried on htc touch (elfin) works gr8....???

cant we implement current time using same way..

As you can see the icon updating process takes pretty long so updating every minute would render iPhonetoday nearly unusable.
Maybe when another refresh option is there I will try to make a digital clock for the first row.

thebond
26th May 2009, 02:07 PM
ya it take a bit more time... but tuning it would do better

digital clock would be great help to all...