mIRC Home    About    Download    Register    News    Help

Print Thread
#12297 21/02/03 12:29 PM
Joined: Feb 2003
Posts: 37
D
druiddk Offline OP
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Feb 2003
Posts: 37

Hey hey! :-)

I'm working on a script for making some communication between some clients where messages goes in a @window.

Anyway the problem is:

on ^1:TEXT:trigger*:?:{
echo -s $1-
haltdef
}

Okay so it does the echo in status window - and user doesnt get the msg it self shown... HOWEVER! The user still gets a query window opened (nothing in it though) from the sending nick.

Seems to me this didnt happen in 6.02 but DOES happen in 6.03 ?!

#12298 21/02/03 12:34 PM
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
Code:

on ^*:OPEN:?:trigger*:{
  echo -s $+(<,$nick,>) $1-
  halt
}


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
#12299 21/02/03 01:08 PM
Joined: Feb 2003
Posts: 37
D
druiddk Offline OP
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Feb 2003
Posts: 37

Hi!

I dont want to halt the entire script!
Just prevent user from getting any query windows opened...

#12300 21/02/03 01:40 PM
Joined: Feb 2003
Posts: 37
D
druiddk Offline OP
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Feb 2003
Posts: 37
ARGH!

Sorry! I looked up the on OPEN :-)

Thanks Hammer!

#12301 21/02/03 08:06 PM
Joined: Feb 2003
Posts: 37
D
druiddk Offline OP
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Feb 2003
Posts: 37
ARGHHH!!! No! It doesnt work and I just found out why:

Note: If you halt an on ^open event triggered by an incoming private message, no on TEXT/ACTION events are triggered.

Then my on TEXT wont work... acckkk....

#12302 21/02/03 08:42 PM
Joined: Dec 2002
Posts: 1,237
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 1,237
on *1:Open:?:*:triger*:/close -m $nick
}

I dont know if thats close to what you want i havent tested it...but here ya go anyway

#12303 22/02/03 12:49 AM
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
Put your on TEXT code inside the on OPEN event! Each time they send you something, you capture it before the window opens. on TEXT happens if the window is already open.


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C

Link Copied to Clipboard