View Full Version : Question about e_X, e_Y
AudioSam
06-08-2007, 12:47 PM
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
RizlaUK
06-08-2007, 12:51 PM
Hey Sam, how you doing mate :yes
you can add more to it like this:
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
AudioSam
06-08-2007, 12:56 PM
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
RizlaUK
06-08-2007, 12:59 PM
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
AudioSam
06-08-2007, 01:16 PM
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
RizlaUK
06-08-2007, 01:36 PM
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
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
AudioSam
06-08-2007, 01:48 PM
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
RizlaUK
06-08-2007, 02:07 PM
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
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
AudioSam
06-08-2007, 03:13 PM
Thanks Rizla,
This is a custom volume bar.
I just need to allow more than one e_Y position.
Thank You
AudioSam
06-08-2007, 04:56 PM
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, :yes
AudioSam
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.