Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 10 of 10
  1. #1
    Join Date
    Jan 2007
    Posts
    271

    Grin Question about e_X, e_Y

    if e_Y ~= 473 then
    Application.ExitScript()
    else
    end

    How would I add more e_Y positions , like 473, 474, 475, 476 ???

    Thank You,
    AudioSam

  2. #2
    Join Date
    May 2006
    Posts
    5,380
    Hey Sam, how you doing mate

    you can add more to it like this:

    Code:
    if e_Y ~= 473 or e_Y ~= 474 or e_Y ~= 475 or e_Y ~= 476 or e_Y ~= 477 or e_Y ~= 478 then
    Application.ExitScript()
    else
    end
    Open your eyes to Narcissism, Don't let her destroy your life!!

  3. #3
    Join Date
    Jan 2007
    Posts
    271

    Thumbs up Thanks as always Rizla

    I was going to ask you if you would mind looking at this in the other post.
    I figured you were busy.
    Thank You
    AudioSam

  4. #4
    Join Date
    May 2006
    Posts
    5,380
    sure ill take a look,

    i have a day off today so its a long weekend for me, i will be dedicating the weekend to ams as a catchup to refresh my brain, so i up for helping as much as i can

    explain what it is you need to do and i will see what i can come up with
    Open your eyes to Narcissism, Don't let her destroy your life!!

  5. #5
    Join Date
    Jan 2007
    Posts
    271

    Grin No Luck

    For some reason when I put only one e_Y area I can make it work.
    When I add more I can't make it happen.
    I do want it so that if the mouse is in any of the e_Y areas then I can do something.
    I believe or takes care of that, but I can't get it to work with the code from above.
    I tried also lineing the (or statements) Vertical.
    Still no luck
    Any Idea

  6. #6
    Join Date
    May 2006
    Posts
    5,380
    ok, why not try useing hotspots

    in the "on enter" set a var to true and "on exit" set it to false

    so if the mouse enters the area of the hotspot set var "areaA = True"

    and use the var to test your if statment

    Code:
    if areaA == true then
    -- do something for areaA 
    elseif areaB == true then
    -- do something for areaB 
    elseif areaC == true then
    -- do something for areaC 
    elseif areaD == true then
    -- do something for areaD
    end
    that way the event will only fire if the mouse is in the right area

    but there is 1 small fault with that, if the mouse is over a hotspot and then you move the moust out of the app window real quick the on exit event fails to fire, i'll make you a function to test if the mouse is in the app window and if not reset all your vars back to false, if you use this method that is

    it maybe worth a shot
    Open your eyes to Narcissism, Don't let her destroy your life!!

  7. #7
    Join Date
    Jan 2007
    Posts
    271

    Thanks Rizla

    I have a volume bar, I have the slider working.
    Only if I hit this one area e_Y 475.
    I want it so I have about a 20 pixle area covered Vertical.

    Thats where the other numbers come into play.
    So if the mouse is anywhere in this 20 pixle area then it will
    for the most part move the slider.

    Thank You,
    Sam

  8. #8
    Join Date
    May 2006
    Posts
    5,380
    ok, so you want to move the slider with a mouse click within the 20 pixel area?

    if thats the case then all you need to do is place a hotspot and in mouse click put

    for moving the slider up
    Code:
    cRange = Slider.GetRange("Plugin1");
    cPos = Slider.GetSliderPos("Plugin1");
    if cPos+1 < cRange.Maximum then
    Slider.SetSliderPos("Plugin1", cPos+1);
    end
    and to move the slider down change this
    if cPos+1 < cRange.Maximum then
    Slider.SetSliderPos("Plugin1", cPos+1);
    to this
    if cPos-1 > cRange.Minimum then
    Slider.SetSliderPos("Plugin1", cPos-1);
    is that any help or am i still missing something
    Open your eyes to Narcissism, Don't let her destroy your life!!

  9. #9
    Join Date
    Jan 2007
    Posts
    271

    Arrow This is a custom Volume slider

    Thanks Rizla,

    This is a custom volume bar.
    I just need to allow more than one e_Y position.
    Thank You

  10. #10
    Join Date
    Jan 2007
    Posts
    271

    Thumbs up Got it all working now.

    Thanks Rizla for the input.
    Got it all working.

    Sometimes that light just comes on and its like, why didn't I think of that sooner.

    Your input helped.

    Thank You,
    AudioSam

Similar Threads

  1. Test Drive Question
    By jrthom1 in forum Setup Factory 7.0
    Replies: 3
    Last Post: 05-17-2007, 01:45 PM
  2. Math.RandomSeed() question
    By stickck in forum AutoPlay Media Studio 6.0
    Replies: 8
    Last Post: 06-09-2006, 09:42 AM
  3. Random question
    By tzkennedy in forum AutoPlay Media Studio 5.0
    Replies: 2
    Last Post: 04-09-2005, 12:08 AM
  4. Basic Flash question
    By aae991 in forum AutoPlay Media Studio 5.0
    Replies: 2
    Last Post: 03-09-2005, 09:46 PM
  5. ** Question for all AutoPlay Menu Studio Users **
    By Ted in forum AutoPlay Menu Studio 3.0
    Replies: 4
    Last Post: 10-09-2000, 09:09 AM

Posting Permissions

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