Jump to content

Recommended Posts

Posted

hi,

id like to know a better way to check if the x/y coords for a button are within a specified area, ive been using this formula but it doesn't usually work the way i want it to.

If $xcoord > [specified x area] And $xcoord < [other specified x area] And $ycoord > [specified y area] And $ycoord < [ycoord] Then [other stuff]

[spoiler]My UDFs: Login UDF[/spoiler]

Posted

If _
  ( $xcoord >= [area x min] And $xcoord <= [area x max] ) _ ;; IsInsideArea
  Or _ ;; Or, as in: use/pick one of these.
  Not( $xcoord < [area x min] Or $xcoord > [area x max] ) _ ;; Not(IsOutsideArea)
  And ... ;; same for Y part.
  Then
  ;; do your stuff
  ;; note: can be done with only one Not() part if you like. -> Not(IsOutside1 Or IsOutside2 ...)
EndIf

"Straight_and_Crooked_Thinking" : A "classic guide to ferreting out untruths, half-truths, and other distortions of facts in political and social discussions."
"The Secrets of Quantum Physics" : New and excellent 2 part documentary on Quantum Physics by Jim Al-Khalili. (Dec 2014)

"Believing what you know ain't so" ...

Knock Knock ...
 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...