mIRC Homepage
Posted By: Zyzzyx26 Can't figure out what is wrong... - 31/07/04 10:26 PM
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.
Posted By: KingTomato Re: Can't figure out what is wrong... - 31/07/04 10:45 PM
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 }
Posted By: Zyzzyx26 Re: Can't figure out what is wrong... - 31/07/04 10:48 PM
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*
Posted By: FiberOPtics Re: Can't figure out what is wrong... - 31/07/04 10:53 PM
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?
Posted By: Zyzzyx26 Re: Can't figure out what is wrong... - 31/07/04 11:03 PM
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!
Posted By: Zyzzyx26 Re: Can't figure out what is wrong... - 01/08/04 12:54 AM
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.
Posted By: Nobodi Re: Can't figure out what is wrong... - 01/08/04 01:12 AM
You might try reading the /did section in the help file the answer is there.
Posted By: Zyzzyx26 Re: Can't figure out what is wrong... - 01/08/04 01:17 AM
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
Posted By: Nobodi Re: Can't figure out what is wrong... - 01/08/04 03:10 AM
-z resets the width of horizontal scrollbar in listbox

Posted By: Zyzzyx26 Re: Can't figure out what is wrong... - 01/08/04 03:18 AM
Awesome, I didn't even see that flag there laugh Thanks a lot!
© mIRC Discussion Forums