Results 1 to 7 of 7

Thread: Change background without using xternal scripts

  1. #1
    Confusion Master
    Auto Apps:loading...
    Enforcer's Avatar
    Join Date
    Sep 2003
    Location
    If you go down to the woods today, You're sure of
    Posts
    14,585

    Change background without using xternal scripts

    Ok, this is something that has bugged me for a while, and one of the reasons iDrive transparent hasn't been released yet.

    I wanted a way of changing the background without

    1. using an external script or program

    and

    2. using the picviewer skin/screen.


    And also allowing for seperate picture and backgrounds locations.

    I have now got it working. I think.


    Note: Assumes you have a backgrounds folder in the root of RoadRunner, which is where I recommend everyone has it rather than a backrounds folder in each skin.

    in exectbl.ini have the following
    Code:
     
     
     
    "ONSKINSTART","BYVAR;strt;AUDIO<<load;background.skin||SETVAR;strt;0"
     
    "TIMER","SETVARBYCODE;LISTTEXT;LISTTEXT||SETVAR;bground;$rrpath$backgrounds\$LISTTEXT$",BACKGROUND.SKIN 
     
     
    .

    in your background.skin

    Code:
     
    TMR,1
     
    B,x,y,w,h,"PGUP",""
    B,x,y,w,h,"UP",""
    B,x,y,w,h,"DOWN",""
    B,x,y,w,h,"PGDOWN",""
     
    B,x,y,w,h,"SETVARBYCODE;LISTTEXT;LISTTEXT||SETVAR;bground;$rrpath$backgrounds\$LISTTEXT$||SAVETOSKIN;background;$rrpath$backgrounds\$LISTTEXT$||SETVAR;strt;1||RELOADSKIN",""
     
    SD,x,y,w,h,"$rrpath$backgrounds\","*.jpg",false
     
    S01,x,y,w,h,",255,255,255,000,000,000,000,000,000,255,255,0,TRUE,18,"Tahoma:B"
     
    I,210,050,580,360,"FILE;$bground$"
     
    .

    Ok, I'll try to explain what happens

    The onskinstart line is done such that if the variable strt is zero it goes to the AUDIO screen (this is of course optional and up to you, change or delete as necessary) whereas if it is 1 it goes to the background skin, this is so that once you have changed the background, the skin needs to be reloaded and if so you want to come back to the background screen.

    The main button line is the one that sets the background variable in your skin.ini and also sets the strt variable to 1.

    Now the TIMER sets a timer up in the background screen to set the bground variable to the currently selected file in the list.
    The result of this is that every second (TMR,1) this variable is updated and list variable is used in the Indicator line to display that image.

    This will not work on the last December RR release as thei is a bug in the indicator function, but should work in the previuos release (november) and the new one when Guino releases it.


    If this is any good to you great, if not then sorry to have wasted your time with my inane babbling.


    As a side note I also added a similar button in my picviewer.skin so that A picture from the pictures folder can be set as background.

    <post subjected to editing once I have reread it a number of times to see if it makes sense>

  2. #2
    FLAC Sal R.'s Avatar
    Join Date
    Aug 2006
    Location
    Sun Diego
    Posts
    1,448
    If you want to take it up a notch, I can show you how to update the the whole background.skin with the background image and skin on-the-fly so you get a fullscreen preview.

    Pico-ITX / XP Home with EWF-HORM / RR v12/02/2009 / Winamp v5.13 / RRMedia v1.2.2

  3. #3
    High Voltage blk02si's Avatar
    Join Date
    Jul 2005
    Location
    Motorcity
    Posts
    2,259
    Blog Entries
    1
    Shock V 6.x uses very similar code, and background.skin instead of picviewer.

    Might want to take a gander.
    Build Things, it keeps your brain busy.

    AutoPC v1 (Retired) - AutoPC v2 (in progress) - www.shocknet.us

  4. #4
    Confusion Master
    Auto Apps:loading...
    Enforcer's Avatar
    Join Date
    Sep 2003
    Location
    If you go down to the woods today, You're sure of
    Posts
    14,585
    Quote Originally Posted by Sal R. View Post
    If you want to take it up a notch, I can show you how to update the the whole background.skin with the background image and skin on-the-fly so you get a fullscreen preview.


    Hmm don't tell me, I'll go and have a play.

  5. #5
    Variable Bitrate kelmk's Avatar
    Join Date
    Aug 2007
    Location
    SF
    Posts
    371
    Is this still the only way to change background image on the fly?

  6. #6
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,817
    Currently, you can do this or use the picviewer to browse backgrounds -- and the skin must be reloaded.
    Ride Runner RR's Myspace

    "Being happy is not about having what you want, it's about wanting what you have."
    "The best things in life are always free - but that doesn't mean money can't buy you good things."

  7. #7
    Low Bitrate
    Join Date
    Jan 2004
    Location
    Illinois
    Posts
    81

    Can I just use this for one skin.

    I have tried many times to set up a back ground skin and it never works.
    I only want this to work for my audio player.

    1: do I have to use .png for all the skins, or will I get a type mismatch error?
    2: or can I just have the backgound on the audioplayer and have it only with png files.

    thanks
    Cliff

Similar Threads

  1. Change Log
    By iamgnat in forum CarFrontEnd
    Replies: 12
    Last Post: 03-19-2008, 10:33 PM
  2. Digital FX 2.0 Transparent Released
    By JohnWPB in forum RR Skins No Longer Supported
    Replies: 3759
    Last Post: 03-07-2008, 12:23 PM
  3. Replies: 145
    Last Post: 09-09-2007, 10:38 PM
  4. Program to change background at a certain time?
    By Telos in forum Software & Software Development
    Replies: 2
    Last Post: 04-15-2007, 02:15 PM
  5. ebay change of password
    By cruzc_99 in forum Off Topic
    Replies: 1
    Last Post: 01-22-2002, 03:43 PM

Bookmarks

Posting Permissions

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