Results 1 to 6 of 6

Thread: SwitchButton problems

  1. #1
    Variable Bitrate wfs1's Avatar
    Join Date
    Oct 2005
    Location
    Arkansas
    Posts
    250

    SwitchButton problems

    Okay below is my setup for MS Streets and I want to do a day/night mode toggle from just one button (button 14). I would like to change the labels too but heck I'm still at the amateur level here. Anyway, I've tried many attempts and all I get is the first key sequence %VMT, the %VMN doesn't work. What am I doing wrong here.

    /, B, x, y, w, h, Command;COMMANDCODES, Tooltip
    B01,491,0,103,70,"ACTIVATE;- Microsoft Streets & Trips||SENDKEY;%Ri",
    B02,195,0,100,71,"ACTIVATE;- Microsoft Streets & Trips||SENDKEY;%TV","Guidance Pane"
    B03,97,0,98,71,"ACTIVATE;- Microsoft Streets & Trips||SENDKEY;%TN","Find Near"
    B04,294,0,99,71,"ACTIVATE;- Microsoft Streets & Trips||SENDKEY;%UR","Route Planner"
    B05,693,0,105,71,"ACTIVATE;- Microsoft Streets & Trips||SENDKEY;{F3}","ReRoute"
    B06,2,521,104,77,"EXIT","EXIT"
    B07,205,521,95,77,"ACTIVATE;- Microsoft Streets & Trips||SENDKEY;%VZO","Zoom Out"
    B08,300,521,102,77,"ACTIVATE;- Microsoft Streets & Trips||SENDKEY;%VZI","Zoom In"
    B09,394,0,97,71,"ACTIVATE;- Microsoft Streets & Trips||SENDKEY;%TP","GPS Pane"
    B10,106,521,100,77,"EXITMENU",
    B11,595,521,100,77,"VOL+",
    B12,500,521,94,77,"VOL-",
    B13,401,521,98,77,"PLAY",
    B14,1,0,96,71,"ACTIVATE;- Microsoft Streets & Trips||SENDKEY;%VMT||SWITCHBUTTON;14>>ACTIVATE;- Microsoft Streets & Trips||SENDKEY;%VMN","Day Night"
    B15,592,0,101,71,"ACTIVATE;- Microsoft Streets & Trips||SENDKEY;%TGS||ACTIVATE;- Microsoft Streets & Trips||SENDKEY;%TGM||ACTIVATE;- Microsoft Streets & Trips||SENDKEY;%TGA","TRACK"

  2. #2
    SMKFree liquid_smoke's Avatar
    Join Date
    Aug 2003
    Location
    Chicago
    Posts
    4,842
    try this

    button code
    Code:
    "ACTIVATE;- Microsoft Streets & Trips||SENDKEY;%VMT||SWITCHLABEL;2||SWITCHBUTTON;14>>ACTIVATE;- Microsoft Streets & Trips||SENDKEY;%VMN||SWITCHLABEL;2||SWITCHBUTTON;1"
    for switch label.
    create a label and use code below, the button code above will switch label 02

    label code
    Code:
    "=peace up>>=Atown down"
    01101100 01101001 01110001 01110101 01101001 01100100 01011111 01110011
    01101101 01101111 01101011 01100101

    beer replenishment fund
    http://www.mp3car.com/vbulletin/rr-faq/
    mp3car live search

    i have joost invites, just hit me up for one.

  3. #3
    Maximum Bitrate kpjuk's Avatar
    Join Date
    Dec 2003
    Location
    West Midlands
    Posts
    474
    Quote Originally Posted by wfs1 View Post
    Okay below is my setup for MS Streets and I want to do a day/night mode toggle from just one button (button 14). I would like to change the labels too but heck I'm still at the amateur level here. Anyway, I've tried many attempts and all I get is the first key sequence %VMT, the %VMN doesn't work. What am I doing wrong here.

    /, B, x, y, w, h, Command;COMMANDCODES, Tooltip
    B01,491,0,103,70,"ACTIVATE;- Microsoft Streets & Trips||SENDKEY;%Ri",
    B02,195,0,100,71,"ACTIVATE;- Microsoft Streets & Trips||SENDKEY;%TV","Guidance Pane"
    B03,97,0,98,71,"ACTIVATE;- Microsoft Streets & Trips||SENDKEY;%TN","Find Near"
    B04,294,0,99,71,"ACTIVATE;- Microsoft Streets & Trips||SENDKEY;%UR","Route Planner"
    B05,693,0,105,71,"ACTIVATE;- Microsoft Streets & Trips||SENDKEY;{F3}","ReRoute"
    B06,2,521,104,77,"EXIT","EXIT"
    B07,205,521,95,77,"ACTIVATE;- Microsoft Streets & Trips||SENDKEY;%VZO","Zoom Out"
    B08,300,521,102,77,"ACTIVATE;- Microsoft Streets & Trips||SENDKEY;%VZI","Zoom In"
    B09,394,0,97,71,"ACTIVATE;- Microsoft Streets & Trips||SENDKEY;%TP","GPS Pane"
    B10,106,521,100,77,"EXITMENU",
    B11,595,521,100,77,"VOL+",
    B12,500,521,94,77,"VOL-",
    B13,401,521,98,77,"PLAY",
    B14,1,0,96,71,"ACTIVATE;- Microsoft Streets & Trips||SENDKEY;%VMT||SWITCHBUTTON;14>>ACTIVATE;- Microsoft Streets & Trips||SENDKEY;%VMN","Day Night"
    B15,592,0,101,71,"ACTIVATE;- Microsoft Streets & Trips||SENDKEY;%TGS||ACTIVATE;- Microsoft Streets & Trips||SENDKEY;%TGM||ACTIVATE;- Microsoft Streets & Trips||SENDKEY;%TGA","TRACK"
    To try and simplify this, try adding the following to ExecTBL.ini

    "VMT","ACTIVATE;- Microsoft Streets & Trips||SENDKEY;%VMT"
    "VMN","ACTIVATE;- Microsoft Streets & Trips||SENDKEY;%VMN"

    This just defines your two commands, and then allows you to call them using a BYVAR function like so

    B14,001,000,096,071,"BYVAR;VMTN;VMT||SETVAR;VMTN;1 <<VMN||SETVAR;VMTN;0"

    So, this command uses a variable VMNT. If VMNT = 0, then VMT is called, and you then reset VMNT to = 1. Next time you press the button, VMNT is 1 so it executes VMN, and resets VMNT to 0.

    I can't help on the switchbutton command. I have only used the setbutton commands before, and I don't have streets and Trips, but this technique should work, and it is far more readable !

    The only other observation is that I don't know what the

    ,"Day Night"

    is doing, but this could be your problem from a syntax point of view.

    cheers
    KPJUK

    Nice one LS, you beat me to it with a switchbutton answer !
    M1000, 512MB, 512MB CF, 6GB Disk (4200rpm),
    DVD/RW, Dynamix 8" screen, M2-ATX, Custom case,Too many hours building and rebuilding and rebuild.......

  4. #4
    Variable Bitrate wfs1's Avatar
    Join Date
    Oct 2005
    Location
    Arkansas
    Posts
    250
    Thanks so much for both replies, now so many options..

    Thanks again..

  5. #5
    SMKFree liquid_smoke's Avatar
    Join Date
    Aug 2003
    Location
    Chicago
    Posts
    4,842
    will make things easier to read. But i dont think using BYVAR is less confusing esp if your new to variables, may take a bit to wrap your head around, at least it did for me.

    if you add the info in his post to ExcTBL.ini the switchbutton would look like this.

    Code:
    "VMT||SWITCHLABEL;2||SWITCHBUTTON;14>>VMN||SWITCHLABEL;2||SWITCHBUTTON;1"

    the "Day Night" at the end of the code, does nothing. Its just a tooltip area, but depending on what you put there and what kind of object it is, it can do things.

    If it were a lablel, "CENTER" in the same area would center the text.
    If it were a button, @command@ (@ instead of quotes) in the same area would execute a command if you click and hold on the button. You can use it as an area to type short comments.
    01101100 01101001 01110001 01110101 01101001 01100100 01011111 01110011
    01101101 01101111 01101011 01100101

    beer replenishment fund
    http://www.mp3car.com/vbulletin/forumdisplay.php?f=93
    mp3car live search

    i have joost invites, just hit me up for one.

  6. #6
    Variable Bitrate wfs1's Avatar
    Join Date
    Oct 2005
    Location
    Arkansas
    Posts
    250
    Thanks again, Liquid. I got it working!

Similar Threads

  1. Problems installing Girlfriend 1.0...
    By gospeed.racer in forum Off Topic
    Replies: 28
    Last Post: 10-18-2005, 06:17 PM
  2. Car voltage problems
    By cheerio in forum General MP3Car Discussion
    Replies: 2
    Last Post: 08-16-2004, 09:01 AM
  3. Dell Inspiron 8200 & Lilliput TS problems?
    By bkpsu in forum LCD/Display
    Replies: 1
    Last Post: 08-15-2004, 02:55 PM
  4. Setup nearing completion, having all kinds of problems (yeah i did a :search:)
    By therussman2002 in forum General Hardware Discussion
    Replies: 4
    Last Post: 06-21-2004, 07:09 PM
  5. Shutdown Problems - Troubleshooting Guide
    By brettwmd in forum Power Supplies
    Replies: 0
    Last Post: 05-28-2004, 12:46 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
  •