mIRC Home    About    Download    Register    News    Help

Print Thread
#145994 30/03/06 10:43 AM
Joined: Oct 2005
Posts: 91
T
truguce Offline OP
Babel fish
OP Offline
Babel fish
T
Joined: Oct 2005
Posts: 91
i can't seam to figure out how to get this to work. I have created a @help window with lines of text. I am trying to make a menu to delete the selected line of text. The problem is that i can't figure out how to get the window to figure out what line it is that i have selected. This is the code so far, this is my .mrc file
Code:
on *:chat:*:{
  if (($nick == %helpnick) && ($3 == help) && ($4 == please)) {
    if (!$window(@help)) { window -ezk0ml +sbt @Help 0 0 900 375 dcchelp.txt }
    aline @help $nick - $4-
  }
}
  

and my dcchelp.txt file
Code:
Help Add {
 msg = $+ $gettok($$sline($active,1),1,32) add $gettok($$sline($active,1),3,32)
}
Remove { $$dline($active,1) }  

The one i am looking at is the Remove line. How can i get it to remove the line that is selected?????
Thanks for the help. I have asked many people and no one can answer this for me.

#145995 30/03/06 02:54 PM
Joined: Oct 2005
Posts: 1,741
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
/help $sline

-genius_at_work

#145996 31/03/06 05:41 AM
Joined: Oct 2005
Posts: 91
T
truguce Offline OP
Babel fish
OP Offline
Babel fish
T
Joined: Oct 2005
Posts: 91
Spent some time on it and i figured it out. Thanks for the direction. This is what the line ended up as
Code:
 Remove { /dline $active $sline($active,1).ln } 


Link Copied to Clipboard