mIRC Home    About    Download    Register    News    Help

Print Thread
#148017 27/04/06 10:07 PM
Joined: Jan 2006
Posts: 9
C
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
C
Joined: Jan 2006
Posts: 9
Hi, I need to trigger a message from the status window... any command? Can't find one frown

example:
* Playing 'file.txt' to examplenick with 1200ms delay

#148018 27/04/06 10:27 PM
Joined: Mar 2005
Posts: 420
X
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
If I understand you correctly, you want to get the same type message?

/help /play


If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!
#148019 27/04/06 10:39 PM
Joined: May 2005
Posts: 35
N
Ameglian cow
Offline
Ameglian cow
N
Joined: May 2005
Posts: 35
I think he wants to have a script that look in the status window for that play and then trigger on it

#148020 27/04/06 10:54 PM
Joined: Jan 2006
Posts: 9
C
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
C
Joined: Jan 2006
Posts: 9
Quote:
If I understand you correctly, you want to get the same type message?

/help /play


Nope I just want to collect the nick that it was sended to, when it's completed using the status window with that message... So when it appears in status window, how do you catch it?

thx for trying to help me wink

#148021 27/04/06 11:02 PM
Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
If I understood correctly, you're wanting to echo a message to your status window once a /play has completed?

There is already an event for this, and here is the information directly from the mIRC help file:

Quote:
on PLAYEND

The on PLAYEND event triggers when the /play command has finished playing a file.


Format: on <level>:PLAYEND:<commands>
Example: on 1:PLAYEND:/echo The play command has finished playing $filename

Note: Text files can be played ie. sent to users or channels on IRC by using the /play command.

#148022 28/04/06 12:08 AM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
Quote:
Nope I just want to collect the nick that it was sended to, when it's completed using the status window with that message... So when it appears in status window, how do you catch it?


it sounds to me like when you have played a file to a nick, you want to still use that same nickname to do another event.

If this is right, you can capture the nick in the original event and have it call another alias

for example: you have used %nickname in the first event
you can then send that to the next alias (if that alias is named newalias)

all your play code here

newalias %nickname
}
sample
Code:
on *:text:!Trigger *:#:{
play $nick file.txt
nextalias $nick
}
alias nextalias {
msg $$1 I have show you the file.txt you requested
}

#148023 28/04/06 12:48 AM
Joined: Oct 2005
Posts: 1,741
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
If the previous suggestions aren't what you need, then maybe this is:

If you want to have something happen when the file has finished playing to some nick, then you can use the onPLAYEND event.

Code:
on *:PLAYEND:{
  echo -s Finished playing $filename to $nick
}


-genius_at_work


Link Copied to Clipboard