mIRC Home    About    Download    Register    News    Help

Print Thread
#78528 08/04/04 09:31 PM
Joined: Apr 2004
Posts: 2
D
DWU Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
D
Joined: Apr 2004
Posts: 2
Could someone please perhaps help me with construction of a very small script. When i am Private Messaged on IRC, i would like it so that i get a Small Message/Dialog box in the center of the screen informing me i have received a private message IF the nickname is equal to blah.

So that if blah PM's me ill receive a popup on my screen telling me Blah has pmed me, but if its someone else then nothing will happen. Can anyone perhaps help me with this, i would greatly appreciate it.

Thanks in Advance

DWU

#78529 09/04/04 12:58 AM
Joined: Nov 2003
Posts: 67
C
Babel fish
Offline
Babel fish
C
Joined: Nov 2003
Posts: 67
Code:
dialog pvmsg {
  title "PvMsg"
  size -1 -1 87 28
  option dbu
  text "You receive a priv msg from blah", 1, 4 4 81 9
  button "Ok", 2, 32 15 26 12
}

ON *:OPEN:?:{ 
  if (($nick == blah) && (!$dialog(pvmsg))) { dialog -m pvmsg pvmsg }
}


irc.universochat.net
#escripting
#78530 09/04/04 07:59 AM
Joined: Apr 2004
Posts: 2
D
DWU Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
D
Joined: Apr 2004
Posts: 2
Thanks smile Much appreciated


Link Copied to Clipboard