mIRC Homepage
Posted By: sigbin help? - 29/11/05 09:52 AM
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...
Posted By: Armada Re: help? - 29/11/05 12:31 PM
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
Posted By: sigbin Re: help? - 30/11/05 12:17 PM
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??
Posted By: drc4 Re: help? - 30/11/05 03:40 PM
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.
© mIRC Discussion Forums