mIRC Home    About    Download    Register    News    Help

Print Thread
#58556 31/10/03 10:12 AM
B
bunar
bunar
B
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

#58557 31/10/03 10:22 AM
N
neznani
neznani
N
on ^1:OPEN:?: {
if (%pubdet == On) {
.notice $nick I am not accepting private messages, therefore your message is ignored
haltdef
}
}

#58558 31/10/03 10:25 AM
B
bunar
bunar
B
does not work, it opens window again

#58559 31/10/03 10:28 AM
N
neznani
neznani
N
maybe you have a on ^*:open: { allready in your script somewhere and so that one is used. if not it should work.

#58560 31/10/03 10:34 AM
B
bunar
bunar
B
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)

#58561 31/10/03 11:27 AM
N
neznani
neznani
N
well yes i know what you mean and that code should work.

#58562 31/10/03 12:27 PM
C
CtrlAltDel
CtrlAltDel
C
Instead of the timer, just use

./close -m $nick

the window will close fast enough you won't be bothered with it

#58563 31/10/03 01:51 PM
B
bunar
bunar
B
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...

#58564 31/10/03 08:19 PM
C
cybah
cybah
C
I think you'll need a sockbot for that and then halt the sockwrite to the "mircserver" when a pm happens.
Alot of work grin
I would say,be happy with the on blushpen: event wink

#58565 01/11/03 11:28 AM
S
stimpy
stimpy
S
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

#58566 03/11/03 09:05 PM
Joined: Feb 2003
Posts: 806
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 806
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).


Link Copied to Clipboard