mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Feb 2004
Posts: 714
Z
Hoopy frood
OP Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
Hello there!
Code:
on *:NOTICE:*:*: {
  if ($nick !isnotify) || ($ulevel == 1) { 
    if (!$dialog(Unwanted)) { hadd -m BlockMsg $ticks $+(<,$nick,>,$chr(32),$chr(40),$address,$chr(41)) $strip($1-) }
    if ($dialog(Unwanted)) { 
      did -a Unwanted 1 $+(<,$nick,>,$chr(32),$chr(40),$address,$chr(41)) $strip($1-)
      hadd -m BlockMsg $ticks $+(<,$nick,>,$chr(32),$chr(40),$address,$chr(41)) $strip($1-) 
   }
  }
}

on *:TEXT:*:?: {
  if ($nick !isnotify) || ($ulevel == 1) {
    if (!$dialog(Unwanted)) { hadd -m BlockMsg $ticks $+(<,$nick,>,$chr(32),$chr(40),$address,$chr(41)) $strip($1-) }
    if ($dialog(Unwanted)) { 
      did -a Unwanted 1 $+(<,$nick,>,$chr(32),$chr(40),$address,$chr(41)) $strip($1-) 
      hadd -m BlockMsg $ticks $+(<,$nick,>,$chr(32),$chr(40),$address,$chr(41)) $strip($1-)
   }
  }
}

I just cannot figure out why is the NOTICE being added to the hash table, but the TEXT isn't! I mean, those codes are exactly the same, apart from the event, right? Or did I make a typo that I can't see?

Any help is apreciated smile

Zyzzyx.


"All we are saying is give peace a chance" -- John Lennon
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Look good, only thing I'd suggest is making sure there isn't an ON TEXT matching *:* (any text, any window), or even *:? (any text, query). If there is one above it in the same file, the second and past will not trigger.

Ex:

on *:TEXT:*:*: { /echo -a This will trigger }
on *:TEXT:*:?: { /echo -a This will not }


-KingTomato
Joined: Feb 2004
Posts: 714
Z
Hoopy frood
OP Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
I made sure there wasn't, and, not only this on TEXT event is the 1st on the file, but its the only one in the whole file!

*shrug*


"All we are saying is give peace a chance" -- John Lennon
Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
Hi,

debug it to see first if it actually reaches the event or not. And so on and so on until you see what is wrong.

//echo -a At beginning of on text event with nick: $nick and string: $1-

etc.

Greets

Edit: btw maybe in another script in another file there is an on text event with ^ prefix that does something and then stops the processing?

Last edited by FiberOPtics; 31/07/04 10:59 PM.

Gone.
Joined: Feb 2004
Posts: 714
Z
Hoopy frood
OP Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
Hmm.. I have a query/notice blocker too. When it is ON, the notice gets picked up, but the /msg doesnt.
When it is off, the script works good... wierd.

Anyway, found the problem smile Thanks!


"All we are saying is give peace a chance" -- John Lennon
Joined: Feb 2004
Posts: 714
Z
Hoopy frood
OP Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
Since we are on the subject.. smile

list 1, 4 4 286 122, hsbar vsbar size sort extsel

Is there any special flag that I have to put so the text will actually enable the scroll bars? I've inputed a long line, so the hsbar should be "usable" to scroll through the text.. but it isnt!



What can I do?

Thanks smile
Zyzzyx.


"All we are saying is give peace a chance" -- John Lennon
Joined: Dec 2002
Posts: 191
N
Vogon poet
Offline
Vogon poet
N
Joined: Dec 2002
Posts: 191
You might try reading the /did section in the help file the answer is there.

Joined: Feb 2004
Posts: 714
Z
Hoopy frood
OP Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
I already did that.
Code:
-r = clear all text in id
-a = add line of text to end
-d = delete Nth line
-i = insert text at Nth line
-o = overwrite Nth line with text
These are the flags that are used with a List, i think (as far as adding and removing text). I didn't see a flag to wrapping the text, so I turned to the forum's help once again smile

I guess it some option in the List, but I can't tell...

Code:
list [id, x y w h, style] (sort, extsel, multsel, size, vsbar, hsbar)
These are the List's options, no luck there either smirk

Zyzzy smile


"All we are saying is give peace a chance" -- John Lennon
Joined: Dec 2002
Posts: 191
N
Vogon poet
Offline
Vogon poet
N
Joined: Dec 2002
Posts: 191
-z resets the width of horizontal scrollbar in listbox


Joined: Feb 2004
Posts: 714
Z
Hoopy frood
OP Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
Awesome, I didn't even see that flag there laugh Thanks a lot!


"All we are saying is give peace a chance" -- John Lennon

Link Copied to Clipboard