mIRC Home    About    Download    Register    News    Help

Print Thread
#240578 16/02/13 10:15 PM
Joined: Dec 2010
Posts: 89
D
Babel fish
OP Offline
Babel fish
D
Joined: Dec 2010
Posts: 89
Well, my next problem, lol, is Notices, for some reason their just not working for me. It says in the help file, that notice and text events work the same way, but I have these two scripts, and only the text file seems to work.

Quote:
on *:TEXT:*TP Chat*:#test: {
if (%tpchatwindow == 1) {
aline -p @TP_Chat $asctime([HH:nn:ss]): $1-
savebuf 15 @TP_Chat TPChatWindow.log
}
}

Quote:
on *:NOTICE:*Private Chat from*:#test: {
if (%privatewindow == 1) {
aline -p @Private_Chat $asctime([HH:nn:ss]): $1-
savebuf 15 @Private_Chat PrivateWindow.log
}
}

They do both pretty much the same window, but react to slightly different text, yet only TEXT stuff works (the other one uses notices to notify only admins on the channel, since this information is private between the users sending the messages and admins). Why's the private chat notice event not working?

Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
You have one other on notice higher up in the file? Try make a new file and see if it still dont work.


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
sparta #240580 16/02/13 10:51 PM
Joined: Dec 2010
Posts: 89
D
Babel fish
OP Offline
Babel fish
D
Joined: Dec 2010
Posts: 89
tried, still doesn't work frown and the TEXT was below notice anyway :>

Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
Are you sure it's a channel notice (which is a special kind of notice)? Try using * instead of #test in the on NOTICE event and see if it works then.

5618 #240585 17/02/13 10:24 AM
Joined: Dec 2010
Posts: 89
D
Babel fish
OP Offline
Babel fish
D
Joined: Dec 2010
Posts: 89
Tried using both ? and * in replacement to #test, nutin worked frown

oh.. and while we're on the subject of notices, I am going to release a script soon, and I want it to have an announcement system, so I can send out announcements and they appear in dialogs for everyone who receives it, I was planning on using NOTICE to do this, send them a message without them knowing about it and it'll just pop up in dialog. Is their a way I can send someone a message where people would not really notice it, so just a discrete little way of sending messages from me to them using scripts to detect and put it into a txt file to read from into a dialog edit box?. Maybe I can send them a notice, and put in the script i will be distributing an on OPEN script a halt? To stop message appearing? Would something like that work?

Last edited by dominic_eddy; 17/02/13 11:32 AM.
Joined: Oct 2012
Posts: 164
D
Vogon poet
Offline
Vogon poet
D
Joined: Oct 2012
Posts: 164
Originally Posted By: dominic_eddy
Tried using both ? and * in replacement to #test, nutin worked frown

Is there any color/bold/underline/etc codes in the matchtext?

Deega #240619 18/02/13 09:23 AM
Joined: Dec 2010
Posts: 89
D
Babel fish
OP Offline
Babel fish
D
Joined: Dec 2010
Posts: 89
Quote:
*@TX-12:%#test* * Private Chat from [GCI]test1 (ID:12) to test2 (ID:18): test


thats what it looks like... now i just automatically assumed they was notices, because of the same colour and everything, but the begginning bit looks slightly different shocked ummm.
(Normal notices: -wooolly- cheesey)

Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
you can use debug to see what is sent to/from mirc, this way you also can see what raw events that are used.

Type in any window:
/debug @debug


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
sparta #240622 18/02/13 09:57 AM
Joined: Dec 2010
Posts: 89
D
Babel fish
OP Offline
Babel fish
D
Joined: Dec 2010
Posts: 89
i asked the owner of server, he said it uses /msg, not /notice, silly me, but their isn't a on MSG event D: what am i gunna do now shocked

Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
That would be on TEXT, but use debug first, as suggested, because your paste doesn't look like a standard privmsg.

5618 #240627 18/02/13 10:51 AM
Joined: Dec 2010
Posts: 89
D
Babel fish
OP Offline
Babel fish
D
Joined: Dec 2010
Posts: 89
okay smile thanks for the help, I'll test some things out :>


Link Copied to Clipboard