Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Byvar and LoadIMG problem

  1. #1
    Low Bitrate
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    84

    Byvar and LoadIMG problem

    Hi,

    i search for a solution since ~3 days for this Problem:

    I save a Variable to skin.ini and this Variable should switch between two Images on the same Position, with the Timer. But this does not work with Loadimg, IMG and LDImg.

    for example, my exectbl.:
    "TIMER","test",AUDIO_BROWSER.SKIN
    ...

    "test","BYVAR;Testswitch;Switch1<<Switch2"

    "Switch1","LoadIMG;232;120;80;80;$DisplayIMG1_on$; out"
    "Switch2","LoadIMG;232;120;80;80;$DisplayIMG1_off$ ;out"

    in the AUDIO_BROWSER.SKIN are the Buttons to set the Variable "Testswitch".
    But this works only once after Skinstart. When i change the Variable and reload Roadrunner, the other Image be displayed.

    I hope, my English is readable, Christmas Greetings from Germany and Babelfish...

  2. #2
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,818
    1-Did you add a TMR,X definition to audio_browser.skin ?
    2-What are the values of DisplayIMG1_off and DisplayIMG1_on ?
    3-Be sure there's nothing else defined where your image will be displayed.

    It should work with LOADIMG and LDIMG -- the only difference between the two is where the image is. If you post your audio_browser.skin it would be easier to understand it.
    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."

  3. #3
    Low Bitrate
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    84
    Hi,

    audio_browser.skin
    RoadRunner Skin
    RRScreen audio_browser
    audio_player_OFF.png,audio_player_OFF.png,audio_pl ayer_ON.png,audio_player_ON.png
    TMR,4
    B,227,2,29,45,"SAVETOSKIN;testswitch;1",
    B,198,2,29,45,"SAVETOSKIN;testswitch;0",

    B,247,548,99,32,"SEARCHFILES",
    B,260,127,77,57,"SELECT",
    B,1,1,72,53,"RELOADSKIN",
    B,2,254,102,199,"Shortcuts-Audio",
    B,278,374,67,61,"BROWSE",
    B,276,475,60,59,"CLEARLIST",
    B,277,259,66,63,"BACK",
    B,273,188,69,60,"ADD1",
    I,129,120,90,90,"CUSTOMFOLDERINDICATOR"
    I,741,1,66,58,"MASTERMUTE"
    I,77,58,30,33,"CUSTOMNEXTINDICATOR"
    I,14,58,30,33,"CUSTOMPREVINDICATOR"
    I,50,59,27,28,"CUSTOMPLAYINDICATOR:B"
    I,320,3,47,47,"ONLINE"
    I,740,59,60,37,"REPEAT"
    I,690,58,50,38,"SHUFFLE"
    L,129,119,90,90,0,0,0,12,"Arial","EXEC;Setdisk1||= ",
    L,149,216,90,90,0,0,0,12,"Arial","EXEC;Setdisk2||= ",
    L,156,308,90,90,0,0,0,12,"Arial","EXEC;Setdisk3||= ",
    L,149,400,90,90,0,0,0,12,"Arial","EXEC;Setdisk4||= ",
    L,128,492,90,90,0,0,0,12,"Arial","EXEC;Setdisk1||= ",
    L,135,185,97,17,255,255,255,10,"Tw Cen MT:B","=$DisplayText1$","CENTER"
    L,149,281,97,18,255,255,255,10,"Tw Cen MT:B","=$DisplayText2$","CENTER"
    L,150,373,97,18,255,255,255,10,"Tw Cen MT:B","=$DisplayText3$","CENTER"
    L,141,465,97,18,255,255,255,10,"Tw Cen MT:B","=$DisplayText4$","CENTER"
    L,120,557,97,18,255,255,255,10,"Tw Cen MT:B","=$DisplayText5$","CENTER"
    L,354,122,377,26,116,116,116,16,"VAGRounded BT","DLPATH","SCROLL-LEFT"
    L,74,31,76,25,255,255,255,12,"Arial:B","TIME","LEF T"
    L,74,7,76,22,255,255,255,12,"Arial:B","TODAY","LEF T"
    L,695,6,50,26,255,255,255,12,"Arial:B","VOLUME","R IGHT"
    L,134,64,535,36,0,0,0,24,"Urban Sketch:B","TAGARTIST||=: ||TAGTITLE||= (||TRACKTIME||=)","SCROLL-CENTER"
    L,282,389,63,32,255,255,255,12,"Arial:B","=ENTER",
    L,278,493,63,32,255,255,255,12,"Arial:B","=CLEAR",
    L,288,275,47,28,255,255,255,12,"Arial:B","=ROOT",
    L,288,201,47,37,255,255,255,12,"Arial:B","=ADD",
    L,257,552,83,21,255,255,255,12,"Arial:B","=SEARCH" ,"CENTER"
    L,279,142,47,32,255,255,255,12,"Arial:B","=NEW",
    IL,DL,transparent.bmp,sel.bmp,,0,50,60
    S,353,152,378,433,0,0,0,138,170,153,116,116,116,11 6,116,116,255,0,0,255,255,255,false,20,"VAGRounded BT"

    END

    ExecTBL.ini
    "ONSKINSTART","PLAYSTATUS||RELOADLIST"

    "TIMER","test",AUDIO_BROWSER.SKIN

    ...
    ...
    ...

    "test","BYVAR;Testswitch;Switch1<<Switch2"

    "Switch1","LoadIMG;1;120;80;80;$DisplayIMG1_on$;ou t"
    "Switch2","LoadIMG;1;120;80;80;$DisplayIMG1_off$;o ut"
    and skin.ini
    backgroundfolder=backgrounds
    background=C:\Program Files\Road Runner\Backgrounds\\Sunset Clouds.jpg

    Album Browser - Display Folder
    Disk1:

    Folder1=F:\
    DisplayText1=USB STICK
    DisplayIMG1_off=\Foldericons\USB_off.GIF
    DisplayIMG1_on=\Foldericons\USB.GIF



    Disk2:

    Folder2=C:\
    DisplayText2=HDD C:
    DisplayIMG2_off=\Foldericons\HDD_off.png
    DisplayIMG2_on=\Foldericons\HDD.png

    Disk3:

    Folder3=D:\Musik\
    DisplayText3=Music
    DisplayIMG3_off=\Foldericons\Home_off.png
    DisplayIMG3_on=\Foldericons\Home.png

    Disk4:

    Folder4=E:\
    DisplayText4=CD/DVD
    DisplayIMG4_off=\Foldericons\CD-Audio_off.png
    DisplayIMG4_on=\Foldericons\CD-Audio.png


    testswitch=0
    The fat marked is for the "Imageswitch-Function". On the position for the Images is nothing else defined.

    Thanks for your help!

  4. #4
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,818
    The problem is a simple misunderstanding of the savetoskin function -- it ONLY saves to the ini file, it DOES NOT set the variable (but RR loads it from the ini when reloading the skin). All you have to do is use setvar after savetoskin and you'll be done..
    Code:
    B,227,2,29,45,"SAVETOSKIN;testswitch;1||SETVAR;testswitch;1",
    B,198,2,29,45,"SAVETOSKIN;testswitch;0||SETVAR;testswitch;0",
    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."

  5. #5
    Low Bitrate
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    84
    Oh, so easy....

    Thank you! Now it goes.

    I wish a good Slide in 2009

  6. #6
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    2,838

    I test

    Hey,

    I test a skin based on the toxic000 exemple :

    I want to create a screen with twelve button how can run twelve different command .
    Each button has an indicator status (red=off;green=on)

    I can set on off on the same screen ; I read in the skin.ini file
    the testswitch# variable :

    skin.ini

    Code:
    [Configuration Visualisation]
    DisplayText1=Maison
    DisplayIMG1_off=off.gif
    DisplayIMG1_on=on.gif
    testswitch=1
    
    DisplayText2=Bateau
    DisplayIMG2_off=off.gif
    DisplayIMG2_on=on.gif
    testswitch2=0
    
    DisplayText3=Voiture
    DisplayIMG3_off=off.gif
    DisplayIMG3_on=on.gif
    testswitch3=0
    
    DisplayText4=Garage
    DisplayIMG4_off=off.gif
    DisplayIMG4_on=on.gif
    testswitch4=1
    Exectbl.ini

    Code:
    ****************** BUTTON TOGGLE **************************
    
    "TIMER","test||test2||test3||test4",DETECT_POI.SKIN
    
    "test","BYVAR;Testswitch;Switch1<<Switch2"
    "Switch1","LoadIMG;18;193;137;16;$DisplayIMG1_on$;out"
    "Switch2","LoadIMG;18;193;137;16;$DisplayIMG1_off$;out"
    
    "test2","BYVAR;Testswitch2;Switch3<<Switch4"
    "Switch3","LoadIMG;178;193;137;16;$DisplayIMG2_on$;out"
    "Switch4","LoadIMG;178;193;137;16;$DisplayIMG2_off$;out"
    
    "test3","BYVAR;Testswitch3;Switch5<<Switch6"
    "Switch5","LoadIMG;337;193;137;16;$DisplayIMG3_on$;out"
    "Switch6","LoadIMG;337;193;137;16;$DisplayIMG3_off$;out"
    
    "test4","BYVAR;Testswitch4;Switch7<<Switch8"
    "Switch7","LoadIMG;18;287;137;16;$DisplayIMG4_on$;out"
    "Switch8","LoadIMG;18;287;137;16;$DisplayIMG4_off$;out"
    
    ****************** BUTTON TOGGLE ***********************
    detect_poi.ini

    Code:
    RoadRunner Skin
    RRScreen F-CNS(800X600STRETCHED)"BROWSER"
    DETECT_POI_OFF.PNG,DETECT_POI_OFF.PNG,DETECT_POI_ON.PNG,DETECT_POI_ON.PNG
    INC,BottomButtons.txt
    TMR,4
    IMG,380,133,55,50,"MenuIcons\voiture.png",OFF
    IMG,380,133,55,50,"MenuIcons\voiture.png",DOWN
    IMG,380,133,55,50,"MenuIcons\voiture.png",ON
    IMG,220,132,55,50,"MenuIcons\bateau.png",OFF
    IMG,220,132,55,50,"MenuIcons\bateau.png",DOWN
    IMG,220,132,55,50,"MenuIcons\bateau.png",ON
    IMG,57,228,55,50,"MenuIcons\garage.png",OFF
    IMG,57,228,55,50,"MenuIcons\garage.png",DOWN
    IMG,57,228,55,50,"MenuIcons\garage.png",ON
    IMG,58,134,55,50,"MenuIcons\maison.png",OFF
    IMG,58,133,55,50,"MenuIcons\maison.png",DOWN
    IMG,58,133,55,50,"MenuIcons\maison.png",ON
    IMG,647,113,128,129,"MenuIcons\maison.png",
    
    B,640,330,150,52,"SAVETOSKIN;testswitch;1||SETVAR;testswitch;1",
    B,489,331,148,49,"SAVETOSKIN;testswitch;0||SETVAR;testswitch;0",
    
    L,71,80,357,35,255,255,255,23,ARIAL:B,"=TWELVE COMMAND","SCROLL-CENTER"
    L,650,348,128,19,255,255,255,18,ARIAL:B,"=OFF","CENTER"
    L,497,348,131,19,255,255,255,18,ARIAL:B,"=ON","CENTER"
    L,501,166,139,26,255,255,255,16,ARIAL:B,"=LATITUDE:","LEFT"
    L,501,192,139,26,255,255,255,16,ARIAL:B,"= ||GPSLAT","LEFT"
    L,501,111,139,26,255,255,255,16,ARIAL:B,"=LONGITUDE:","LEFT"
    L,501,139,139,26,255,255,255,16,ARIAL:B,"= ||GPSLON","LEFT"
     
    /Definition visualisation on off des boutons
    L,491,404,299,44,0,0,0,12,"Arial","EXEC;Setdisk1||= ",
    L,519,75,246,33,255,255,255,18,ARIAL:B,"=$DisplayText1$","SCROLL-CENTER"
    L,17,237,138,33,255,255,255,18,ARIAL:B,"=CMD4","SCROLL-CENTER"
    L,336,144,138,33,255,255,255,18,ARIAL:B,"=CMD3","SCROLL-CENTER"
    L,178,143,138,33,255,255,255,18,ARIAL:B,"=CMD2","SCROLL-CENTER"
    L,17,142,138,33,255,255,255,18,ARIAL:B,"=CMD1","SCROLL-CENTER"
    L,515,285,246,33,255,255,255,18,ARIAL:B,"=$DisplayText1$","SCROLL-CENTER"
    L,580,413,137,28,255,255,255,16,"ARIAL:B","=Exec SetDisk","CENTER"
     
    /, B, X, Y, W, H, COMMAND;COMMANDCODES, TOOLTIP
    B01,489,279,300,45,"SELECT","SELECT"
    B,300,521,99,80,"PLAY",@STOP||PLAY@
    B,398,521,101,80,"NEXTTRACK",
    B,203,521,99,80,"PREVTRACK",
    B12,596,521,99,80,"VOL+",""
    B11,500,521,99,80,"VOL-",""
    B09,102,521,100,80,"EXIT",""
    B90,0,520,101,80,"ESC",@LOAD;MENU.SKIN@
    
    /, I, X, Y, W, H, CODE;INDICATORCODES
    I01,698,521,107,80,"MASTERMUTE"
    
    END
    Actually , I can just set on or of the first command button (CMD1) , with the "savetoskin" command .

    If I push on the CMD1 button , I want to configure this command on/off ,
    if I push on the CMD2 button I want to configure the CMD2 button , etc...

    How can I do that please ?

    My hope is to have twelve run cmd possibility .
    Is it possible with the RREtended plugin or an other ?

    I have a second problem with .png files on button who are hided .

    I can't see that:

    Code:
    IMG,58,134,55,50,"MenuIcons\maison.png",OFF
    IMG,58,133,55,50,"MenuIcons\maison.png",DOWN
    IMG,58,133,55,50,"MenuIcons\maison.png",ON
    I can see that picture :

    Code:
    IMG,647,113,128,129,"MenuIcons\maison.png",
    Any idea ?



    Thanks .
    Attached Images Attached Images  

  7. #7
    FLAC Sal R.'s Avatar
    Join Date
    Aug 2006
    Location
    Sun Diego
    Posts
    1,448
    To have a button toggle on/off on button command, just do this:

    BYVAR;Testswitch1;SETVAR;Testswitch1;1<<SETVAR;Tes tswitch1;0"

    Q#2:

    Add this line:

    IMG,58,134,55,50,"MenuIcons\maison.png",OUT

    so you can see the image.
    Pico-ITX / XP Home with EWF-HORM / RR v12/02/2009 / Winamp v5.13 / RRMedia v1.2.2

  8. #8
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    2,838
    Quote Originally Posted by Sal R. View Post
    To have a button toggle on/off on button command, just do this:

    BYVAR;Testswitch1;SETVAR;Testswitch1;1<<SETVAR;Tes tswitch1;0
    Solve my first problem . Pictures was hided because I had not a command on my buttons !

    But this command don't read my skin.ini file .
    If you try my skin , when I push on on/off buttons, I enable or disable and see my on.gif or off.gif indicator .


    Quote Originally Posted by Sal R. View Post

    Add this line:

    IMG,58,134,55,50,"MenuIcons\maison.png",OUT

    so you can see the image.
    Change nothing for the moment .

    On the screen under these lines , if i push on first left button (Maison), I should like to see on right
    with the top of the buttons on and off the same label (Maison) and the button on run (on) or kill a command .

    If it is possible with a toggle button without read the skin.ini file i agree this option .

    I had found this possibility :
    B,295,517,100,81,"PLAY",@STOP||PLAY@

    Is it a solution ?
    Attached Images Attached Images  

  9. #9
    FLAC Sal R.'s Avatar
    Join Date
    Aug 2006
    Location
    Sun Diego
    Posts
    1,448
    So if I understand this right...you want the button to toggle on/off based on state and update the image indicator that is defined in skin.ini?

    I think this will work...

    Button:
    "BYVAR;Testswitch1;TESTSWITCHOFF<<TESTSWITCHON "

    ExecTBL
    "TESTSWITCHOFF","SETVAR;Testswitch;1||LoadIMG;18;1 93;137;16;$DisplayIMG1_off$;out"
    "TESTSWITCHON","SETVAR;Testswitch;0||LoadIMG;18;19 3;137;16;$DisplayIMG1_on$;out"

    You don' have to read the ini and you can set the state using variable in runtime. skin.ini just initializes and populates your variables on rr/skin startup. you can change the values in runtime using commands like SETVAR, SETVARBYCODE, etc...
    Pico-ITX / XP Home with EWF-HORM / RR v12/02/2009 / Winamp v5.13 / RRMedia v1.2.2

  10. #10
    FLAC Sal R.'s Avatar
    Join Date
    Aug 2006
    Location
    Sun Diego
    Posts
    1,448
    FYI - might want to read up on using custom indicators and the BYIND command. Might yield better results for you.
    Pico-ITX / XP Home with EWF-HORM / RR v12/02/2009 / Winamp v5.13 / RRMedia v1.2.2

Page 1 of 2 12 LastLast

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
  •