Results 1 to 6 of 6

Thread: Need help with the math !

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

    Need help with the math !

    I try to create a slider option for the Elcos Menu.
    My problem is to found the good slider pic (slider_0.png to slider_20.png)
    for a slider's value (0 to 65535).
    The result is the .png file .

    How can i write that please with autoit .

    Thanks

  2. #2
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    2,769
    I think that i have found how to solve my problem :
    Code:
    $ValueSlider =  $rr.getinfo("GPSSINAL")
    $PicturesSlider = "slider_"&Round($ValueSlider/65535*20,0)&".png"
    It's that ?

  3. #3
    MySQL Error
    Auto Apps:loading...

    Join Date
    Oct 2004
    Posts
    5,212
    not to mention, math rules...

    Please Excuse My Dear Aunt Sally

    (value / 65535) * 20
    -Thanks
    Mitch
    www.rush2112.net

    "Did you test it in carwings??"

    Sun, Come shine my way
    May healing waters bury all my pain
    Wind, Carry me home
    The fabric of reality is tearing apart
    The piece of me that died
    Will return To live again

  4. #4
    Super Moderator
    Auto Apps:loading...
    JohnWPB's Avatar
    Join Date
    Sep 2005
    Location
    West Palm Beach, Florida
    Posts
    4,689
    Blog Entries
    1

    Dynamic sliders

    It is far easier to use the dynamic slider instead of the 20 images. A slider can really be any shape and size.

    Here are a few screens of something I was tinkering with a while back. It is using a dynamic slider, the SongPos slider for testing. As the song plays, the graph / slider moves up.

    This is what it looks like in the skin editor. (The large white box is the defined slider area, the smaller one inside it is the SOngPos label)
    Name:  SkinDlider01.jpg
Views: 122
Size:  29.2 KB



    This image is just the slider image:

    Name:  SkinDlider02.png
Views: 112
Size:  9.3 KB



    Finally, this is what it looks like in a test skin.

    Name:  SkinDlider03.jpg
Views: 123
Size:  36.9 KB
    Front End of Choice: Ride Runner (Is there anything else??? ) & Powered by the DFX5.1 Skin Available in the Mobile App Mart

    My Fiero Build Thread

  5. #5
    MySQL Error
    Auto Apps:loading...

    Join Date
    Oct 2004
    Posts
    5,212
    yes.. and that looks pretty
    -Thanks
    Mitch
    www.rush2112.net

    "Did you test it in carwings??"

    Sun, Come shine my way
    May healing waters bury all my pain
    Wind, Carry me home
    The fabric of reality is tearing apart
    The piece of me that died
    Will return To live again

  6. #6
    Raw Wave pierrotm777's Avatar
    Join Date
    May 2008
    Location
    Bordeaux, France
    Posts
    2,769
    Nice in fact John !

    Thanks mitchjs

Similar Threads

  1. Math help needed!
    By Sonicxtacy02 in forum Off Topic
    Replies: 16
    Last Post: 02-05-2010, 05:45 PM
  2. How many USB devices can I use? (Math inside)
    By Maheriano in forum Power Supplies
    Replies: 5
    Last Post: 05-16-2009, 07:49 AM
  3. Math problem...need a little help
    By Cheekz185 in forum Off Topic
    Replies: 8
    Last Post: 04-19-2007, 08:44 AM
  4. cap math?
    By red_parchel in forum Car Audio
    Replies: 60
    Last Post: 08-10-2006, 12:42 PM
  5. Statistics and Math people i need your help!
    By EsKALad in forum Off Topic
    Replies: 9
    Last Post: 11-12-2005, 10:13 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
  •