|
|
|
Joined: Jul 2003
Posts: 3
Self-satisified door
|
OP
Self-satisified door
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.. :-)
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
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
|
|
|
|
Joined: Jan 2003
Posts: 3,012
Hoopy frood
|
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.
[color:blue]+-----------------+
| |
| |
| [color:Red]+[/color] |
| |
| |
| |
| |
+-----------------+[/color]
-KingTomato
|
|
|
|
Joined: Jul 2003
Posts: 3
Self-satisified door
|
OP
Self-satisified door
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
|
|
|
|
Joined: Dec 2002
Posts: 2,962
Hoopy frood
|
Hoopy frood
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.
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
Joined: May 2003
Posts: 2,265 |
o ok, i only ever used it with picwins though
new username: tidy_trax
|
|
|
|
|
|
|
|