mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Sep 2005
Posts: 5
S
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
S
Joined: Sep 2005
Posts: 5
In the helpfile it says for example:
Quote:
$chan(N/#)
Returns information on channels that you are currently on.
Properties: topic, mode, key, limit, ial, logfile, stamp, ibl, status, inwho, wid, cid, hwnd


How do I create properties like the above for a custom alias?
What I'm trying to do is have eg. the x-coordinate of a picwin button returned by using $button.x, where button is my custom alias.
How do I do this? Any ideas?
Could it be possible to have something like $button(N).x as well?

Thanks in advance

Joined: Sep 2005
Posts: 116
I
Vogon poet
Offline
Vogon poet
I
Joined: Sep 2005
Posts: 116
Code:
$chan(N/#).property so $chan(#mirc).hwmd

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
He wants properties for a custom identifier...


Invision Support
#Invision on irc.irchighway.net
Joined: Sep 2005
Posts: 116
I
Vogon poet
Offline
Vogon poet
I
Joined: Sep 2005
Posts: 116
oO is that posable ?

i tihnk it is i saw a script that had those kinds of dots but i never figured it out it was to confusing laugh

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
I took the time to look it up with /help custom identifiers

From help:

Quote:
You can also use the $prop identifier to refer to your own custom properties:

Code:
add {
  %x = $1 + $2
  if ($prop == negative) return $calc(-1 * %x)
  return %x
}


//echo Total is: $add(1,2).negative


So:
Code:
alias button {
  if ($prop == x) { commands }
  elseif ($prop == y) { commands }

  other commands
  return something
}


Invision Support
#Invision on irc.irchighway.net
Joined: Sep 2005
Posts: 5
S
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
S
Joined: Sep 2005
Posts: 5
thank you smirk


Link Copied to Clipboard