mIRC Home    About    Download    Register    News    Help

Print Thread
#39505 03/08/03 08:58 PM
Joined: Jul 2003
Posts: 3
S
Self-satisified door
OP Offline
Self-satisified door
S
Joined: Jul 2003
Posts: 3
Can someone help with this command?

it confusses me, as there are 2 x,y s AND a Width, hieght
as this is NOT a 3D mIRC, can Anyone tell me what each x,y means..?

i've tried many number..and i either get nothing but $true or nothing but $false

now logic tells me that (1,1,10,10,) would be a 10 x 10 box starting at H.Pos 1 and V.Pos 1 ... so the w,h seams redundent, but are needed as i have found.. :-)

#39506 03/08/03 09:02 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
$inrect(x,y,x,y,w,h)
checks if the 1st 2 x,y's are inside a rectangle made by /drawrect in the 2nd x,y and the w,h


new username: tidy_trax
#39507 03/08/03 09:06 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Maybe i can color code it for ya...

$inrect(x,y,x,y,w,h)
Returns $true if the point x y is inside the specified rectangle, and $false if it isn't.

Code:
[color:blue]+-----------------+
|                 |
|                 |
|        [color:Red]+[/color]        |
|                 |
|                 |
|                 |
|                 |
+-----------------+[/color]


-KingTomato
#39508 03/08/03 09:21 PM
Joined: Jul 2003
Posts: 3
S
Self-satisified door
OP Offline
Self-satisified door
S
Joined: Jul 2003
Posts: 3
Thank you Thank you .. now it makes sence...Someone add that to mIRC Help.. eh ... LOL

now i get $true in my Dialog when the mouse is over the 10x10 sq

/echo -a 9 $mouse.x 8 $mouse.y 0 $inrect($mouse.x,$mouse.y,1,1,10,10)

Thanks again smile

#39509 03/08/03 10:58 PM
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
pheonix, the triangle doesn't have to have been drawn, any coordinates will work.


Spelling mistakes, grammatical errors, and stupid comments are intentional.
#39510 04/08/03 12:24 AM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
o ok, i only ever used it with picwins though grin


new username: tidy_trax

Link Copied to Clipboard