mIRC Home    About    Download    Register    News    Help

Print Thread
#12297 21/02/03 12:29 PM
D
druiddk
druiddk
D

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,253
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,253
Code:

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

#12299 21/02/03 01:08 PM
D
druiddk
druiddk
D

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
D
druiddk
druiddk
D
ARGH!

Sorry! I looked up the on OPEN :-)

Thanks Hammer!

#12301 21/02/03 08:06 PM
D
druiddk
druiddk
D
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,214
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 1,214
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,253
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,253
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.


Link Copied to Clipboard