mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Oct 2008
Posts: 3
O
ohm Offline OP
Self-satisified door
OP Offline
Self-satisified door
O
Joined: Oct 2008
Posts: 3
on *:text:*:#:{
if (*hi*ohm* isin $1-) || (*hello*ohm* isin $1-) || (*hola*ohm* isin $1-) {

why can't read *hi*ohm* but it can read (hiohm) help me !!

thank . .

Joined: Jul 2006
Posts: 4,163
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,163
If you're sure than mirc can't, why came here and cry in this section ?

You can't use wildcare with isin, you should read the help file before, use iswm





#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
You should be using the iswm comparator, rather than the isin comparator for the comparisons that use wildcards.

If you want to reference the literal character * in those locations, then you have to change your match method, so that mIRC knows you want the literal character, rather than using it as a wildcharacter, whihc is mIRC's default.

For the literal comparison, change *hi*ohm* to $+($chr(42),hi,$chr(42),ohm,$chr(42))

Joined: Oct 2008
Posts: 3
O
ohm Offline OP
Self-satisified door
OP Offline
Self-satisified door
O
Joined: Oct 2008
Posts: 3
Thank , SIR !! grin

Last edited by ohm; 19/10/08 04:48 PM.

Link Copied to Clipboard