mIRC Home    About    Download    Register    News    Help

Print Thread
#183083 17/08/07 05:03 PM
Joined: Nov 2004
Posts: 822
J
Jigsy Offline OP
Hoopy frood
OP Offline
Hoopy frood
J
Joined: Nov 2004
Posts: 822
Maybe this classifies as a bug, I'm not sure:

Originally Posted By: "Jigsy, from the help file. (Go figure.)"

...

name, title, text are required.
delay, iconfn, iconpos, alias, and wid can be $null.

...


//noop $tip($ctime,Title,Text)

Quote:

* Invalid parameters: $tip

Jigsy #183086 17/08/07 05:06 PM
Joined: Sep 2005
Posts: 2,630
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,630
Not a bug. That's withholding the parameter altogether.

Try this:

Code:
//noop $tip($ctime,Title,Text,,,,,)

hixxy #183110 17/08/07 08:35 PM
S
segosu
segosu
S
I don't understand this behaviour. It doesn't match the behaviour of any other mIRC aliases. For example:

Code:
$readini(mirc.ini,n,text,defport) == 6667

$readini(mirc.ini,text,defport) == 6667

$readini(mirc.ini,,text,defport) == $null

Last edited by segosu; 17/08/07 09:58 PM.
#183117 17/08/07 10:38 PM
Joined: Sep 2005
Posts: 2,630
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,630
It is different, but the help file says the other parameters can be $null, it doesn't say they're optional parameters.

It's possibly because $tip() takes so many parameters and it would be a pain to check for various combinations of optional parameters.

hixxy #183118 17/08/07 10:40 PM
Joined: Nov 2004
Posts: 822
J
Jigsy Offline OP
Hoopy frood
OP Offline
Hoopy frood
J
Joined: Nov 2004
Posts: 822
I wonder why $tip(<name>,<title>,<text>) doesn't treat it like $tip(<name>,<title>,<text>,,,,,,).

Jigsy #183121 17/08/07 10:50 PM
S
segosu
segosu
S
Indeed. I think it would make sense that $tip(1,2,3,4) would treat the rest of the missing parameters as $nulls, so *only* if you had a specific requirement for say the owning window, would you need to do $tip(1,2,3,4,,,,,wid).

#183145 18/08/07 01:20 AM
Joined: Oct 2003
Posts: 3,641
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,641
it'd make a great Feature Suggestion, but as noted above, it's not a bug.

Jigsy #183166 18/08/07 06:16 AM
Joined: Dec 2002
Posts: 153
S
Vogon poet
Offline
Vogon poet
S
Joined: Dec 2002
Posts: 153
Haha, I fought with that identifier for like 10 minutes until I realized that the help file doesn't mention that they're optional parameters, just that they can be $null. Even though this is not a bug, I agree that $tip(name,title,text) should work.

Jigsy #183762 22/08/07 12:11 PM
Joined: Dec 2002
Posts: 3,840
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 3,840
I'll be changing this in the next version so that the $null parameters can also be optional.


Link Copied to Clipboard