mIRC Home    About    Download    Register    News    Help

Print Thread
#136500 29/11/05 09:52 AM
Joined: Jun 2004
Posts: 124
S
sigbin Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Jun 2004
Posts: 124
how can i echo a text msg of a certain user to a active window? like when a certain pm me... his/her nick together with his/her msg willl be echoed to the active window... can anyone help...

#136501 29/11/05 12:31 PM
Joined: Mar 2004
Posts: 540
A
Fjord artisan
Offline
Fjord artisan
A
Joined: Mar 2004
Posts: 540
Code:
 on *:text:*:?: { if ($nick == Friend) { echo -at Private Message < $+ $nick $+ > $1- } }  

Change Friend to the persons name the echo -at part echos to the current window with a timestamp

#136502 30/11/05 12:17 PM
Joined: Jun 2004
Posts: 124
S
sigbin Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Jun 2004
Posts: 124
thankz armada... but can it be possible for the script to just echo the text but the pm window will not open... how can it be done??

#136503 30/11/05 03:40 PM
Joined: Nov 2005
Posts: 105
D
Vogon poet
Offline
Vogon poet
D
Joined: Nov 2005
Posts: 105
I changed the event from on TEXT to on Open just to keep the private message window from opening. The code would be,
Code:
 on ^*:OPEN:?:*:{
  if ($nick == Friend) { echo -at Private Message < $+ $nick $+ > $1-  | haltdef }
} 
Just ensure however that the Private Message window isn't already open, or else it will not echo to your active window, it will just do as miRC normally does and display the message in the message window itself.


Link Copied to Clipboard