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
Professional Software Development Tools
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
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!!
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
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!!
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
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
that way the event will only fire if the mouse is in the right areaCode: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
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!!
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
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
and to move the slider down change thisCode:cRange = Slider.GetRange("Plugin1"); cPos = Slider.GetSliderPos("Plugin1"); if cPos+1 < cRange.Maximum then Slider.SetSliderPos("Plugin1", cPos+1); end
to thisif cPos+1 < cRange.Maximum then
Slider.SetSliderPos("Plugin1", cPos+1);
is that any help or am i still missing somethingif cPos-1 > cRange.Minimum then
Slider.SetSliderPos("Plugin1", cPos-1);
Open your eyes to Narcissism, Don't let her destroy your life!!
Thanks Rizla,
This is a custom volume bar.
I just need to allow more than one e_Y position.
Thank You
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