+ Reply
Results 1 to 6 of 6

Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.


Thread: Executing my own code via springboard

is a discussion within the

File Mods

forums, a part of the

iPhone Modding

section;
Hi Everyone.... i have a created into my skin my very own random wallpaper changer using Javascript Looks like this .... // Type the number of images you are rotating.
...
  1. #1
    What's Jailbreak?
    Join Date
    Jul 2011
    Posts
    24
    Thanks
    3
    Thanked 2 Times in 2 Posts

    Default Executing my own code via springboard
    Hi Everyone.... i have a created into my skin my very own random wallpaper changer using Javascript

    Looks like this ....
    // Type the number of images you are rotating.
    NumberOfImagesToRotate = 32;
    // Specify the first and last part of the image tag.
    FirstPart = '<img id="Wall" src="../Wallpapers/wallpaper';
    MiddlePart = '.jpg">';
    LastPart = '</img>';
    function printImage() {
    var r = Math.ceil(Math.random() * NumberOfImagesToRotate);
    document.write(FirstPart + r + MiddlePart + LastPart);
    }

    Basically, every twenty minutes when the springboard weather app updates .... the wallpaper also changes, it's awesome and it's unique to my phone... see screenshot here..

    Executing my own code via springboard-img_1072-1-.png

    So here's the thing, while it does automatically change every 20 minutes on its own, i would also like a backup option to manually force a change, and i'm looking for one of two ways to do this, or even both.

    1> Can i basically create a shortcut icon to the springboard that links to this script? I press button, it changes.
    OR
    2> maybe create a shortcut SBsettings so i can open the menu, select the icon and it'll run the script and force a wallpaper change.

    Is this possible?
    I know nothing is creating my own apps, just a friend and i who worked on the java script to create a custom piece of code to randomise my wallpapers.

    Ivan

  2. #2
    What's Jailbreak?
    Join Date
    Jul 2011
    Posts
    24
    Thanks
    3
    Thanked 2 Times in 2 Posts

    I wanted to check back and ask if this was asked in the wrong spot, or if it isn't possible or i'm asking the wrong group of people?

    If any of the above, would love to be pointed in the right direction.

    Ivan

  3. #3
    What's Jailbreak?
    Join Date
    Sep 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    hey im not to sure how to help with this problem but would it be possible for you to email me this theme and tell me where to ssh it into my phone?

  4. #4
    What's Jailbreak?
    Join Date
    Jul 2011
    Posts
    24
    Thanks
    3
    Thanked 2 Times in 2 Posts

    Sorry i'm not ready to release this theme, it is also over 100meg (although only 37 if you remove ALL the wallpapers)

    Maybe one day i'll release it but i don't feel confident yet.

    Sorry.

  5. #5
    What's Jailbreak?
    Join Date
    Sep 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    oh okay well it is an extremely interesting idea i hope you get to the point where you are ready to release it someday

  6. #6
    Delirious kooris's Avatar
    Join Date
    Feb 2011
    Location
    New Zealand
    Posts
    620
    Thanks
    125
    Thanked 1,250 Times in 186 Posts

    Quote Originally Posted by Aiban View Post
    Hi Everyone.... i have a created into my skin my very own random wallpaper changer using Javascript

    Looks like this ....
    // Type the number of images you are rotating.
    NumberOfImagesToRotate = 32;
    // Specify the first and last part of the image tag.
    FirstPart = '<img id="Wall" src="http://modmyi.com/forums/Wallpapers/wallpaper';
    MiddlePart = '.jpg">';
    LastPart = '</img>';
    function printImage() {
    var r = Math.ceil(Math.random() * NumberOfImagesToRotate);
    document.write(FirstPart + r + MiddlePart + LastPart);
    }

    Basically, every twenty minutes when the springboard weather app updates .... the wallpaper also changes, it's awesome and it's unique to my phone... see screenshot here..

    Attachment 612919

    So here's the thing, while it does automatically change every 20 minutes on its own, i would also like a backup option to manually force a change, and i'm looking for one of two ways to do this, or even both.

    1> Can i basically create a shortcut icon to the springboard that links to this script? I press button, it changes.
    OR
    2> maybe create a shortcut SBsettings so i can open the menu, select the icon and it'll run the script and force a wallpaper change.

    Is this possible?
    I know nothing is creating my own apps, just a friend and i who worked on the java script to create a custom piece of code to randomise my wallpapers.

    Ivan
    If this is a winterboard theme, you can have a html button integrated into the widget that refreshes the wallpaper.

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