Results 1 to 3 of 3

Thread: toggle switch Q?

  1. #1
    THE EXPERIMENTER
    Auto Apps:loading...
    carputer1's Avatar
    Join Date
    Sep 2007
    Location
    UK,Surrey
    Posts
    1,978

    toggle switch Q?

    i'm trying to make a toggle switch , to change the settings in the skin.ini
    for a couple of plugins i have , also some rr settings too.

    example of my code is for blues day/night event.of which i'm trying to change the DNE_Mode setting.

    the problem i have is that its missing the 2nd cmd, its jumping from the 1st to the last setting .

    ie onbuttonpress = stattime, on 2nd buttonpress = autotime

    then 2nd press should be statgpstime and the 3rd autogps then back to stattime.

    "TimeMode","BYVAR;DNE_Mode;Stattime<<StatGPStime<< Autotime"
    "Autotime","savetoskin;DNE_Mode;0||reloadskin||loa d;timer.skin"
    "StatGPStime","savetoskin;DNE_Mode;1||reloadskin|| load;timer.skin"
    "Stattime","savetoskin;DNE_Mode;2||reloadskin||loa d;timer.skin

    thanks guys

    ENJOY

  2. #2
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,818
    Say DNE=0 (initially), when you do TimeMode it will run stattime, it will then set DNE=2 and reload, then if you hit timemode again, it will run autotime, which will set DNE=0 and reload... and that will loop forever.. without using StatGPSTime.. you just need to switch the order of your commands in byvar or switch the dne values.

    this should work with your current commands:
    Code:
    "BYVAR;DNE_Mode;StatGPStime<<Stattime<<Autotime"
    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
    THE EXPERIMENTER
    Auto Apps:loading...
    carputer1's Avatar
    Join Date
    Sep 2007
    Location
    UK,Surrey
    Posts
    1,978
    cheers G i'll give it go

    i understand now so the sequence needs to be 1- 2 -0 or what ever the amount is it must start with 1 and finish with 0 .
    works a treat .

Similar Threads

  1. Wiring a master switch, help!
    By Kalenth in forum Power Supplies
    Replies: 8
    Last Post: 02-07-2009, 03:02 PM
  2. StreetDeck Functions
    By god_of_cpu in forum DigitalMods (Scripts / API)
    Replies: 22
    Last Post: 01-15-2008, 10:44 PM
  3. New product - PC Power switch with wired remote
    By hd54321 in forum General Hardware Discussion
    Replies: 5
    Last Post: 03-08-2006, 10:48 PM
  4. Need help with X31 port replicator power switch
    By viguera in forum General Hardware Discussion
    Replies: 1
    Last Post: 06-22-2005, 11:12 AM
  5. Savage Switch Botton Group Buy via UK's Iconstyling.com....
    By TheBigDog in forum General Hardware Discussion
    Replies: 3
    Last Post: 07-21-2004, 10:51 AM

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
  •