i have this as "some kind of ignore type"
on 1:OPEN:?: {
if (%pubdet == On) {
.notice $nick I am not accepting private messages, therefore your message is ignored
.timer 1 1 closemsg $nick
}
}
but this opens priv msg window and closes it, but is there a way so mirc WONT open priv msg window and yet execute that notice...
note:
1. i am aware of ignore options - no i dont want to use that
2. i am using mirc 6.03
on ^1:OPEN:?: {
if (%pubdet == On) {
.notice $nick I am not accepting private messages, therefore your message is ignored
haltdef
}
}
does not work, it opens window again
maybe you have a on ^*:open: { allready in your script somewhere and so that one is used. if not it should work.
hmm dunno if you understund me...
when some1 is pm-ing me, it closes that window and notices him, BUT i wanna make that mirc DO NOT open that pm window at all ! and yet that it notices user... but i dont want to include any ignore options (switches)
well yes i know what you mean and that code should work.
Instead of the timer, just use
./close -m $nick
the window will close fast enough you won't be bothered with it
hehe, yeah i know you all want to help, but this (my) code closes it fast as well, but i asked code that WONT OPEN PM window AT ALL and that in the same time notice work...
I think you'll need a sockbot for that and then halt the sockwrite to the "mircserver" when a pm happens.
Alot of work
I would say,be happy with the on
pen: event
I think neznani already sayd the problem...
His code should work perfect...
I also think you already use a "On OPEN" event in one of your other scripts...
Grtzzz
The code neznani posted is supposed to work. I'd only replace that "on ^[color:red]1:OPEN:?:{[/color]" by "on ^[color:red]*:OPEN:?:{[/color]".
Other than that, you probably have another OPEN event or something. Try placing this event in the first remote file you have in your list, above any other OPEN event you may have.
You might want to check if the default access level is set as 1 too (alt+r, Options menu, Default level: 1).