Link

By asakura on Jul 29, 2008

well you just add the links by typing or copying in to the box it comes up with and del it by clicking one in the list and clicking "del"

menu * {
  .Linksaver:dialog -m Linksaver linksaver
}
dialog linksaver {
  title "Links"
  size -1 -1 400 245
  option pixels
  list 1, 5 15 390 200, hsbar, vsbar
  button "Add", 2, 5 220 100 20
  button "Del", 3, 110 220 100 20, disable
  button "Go!", 4, 280 220 100 20, disable
}
on *:DIALOG:linksaver:init:0:{
  var %ee = $numtok(%link,44), %fb = 1
  while ( %fb <= %ee ) {
    did -a $dname 1 $gettok(%link,%fb,44)
  inc %fb }
}
on *:DIALOG:linksaver:sclick:*:{
  if ($did = 1) { did -e $dname 4,3 }
  if ($did = 2) { set %linka $?="what address would you like to add?" | set %link $addtok(%link,%linka,44) | did -a $dname 1 %linka }
  if ($did = 4) { run $did($dname,1).seltext }
  if ($did = 3) {
    set %rem $did($dname,1).seltext 
    set %link $remtok(%link,%rem,44)
    did -r $dname 1 
    var %ee = $numtok(%link,44), %fb = 1 
    while ( %fb <= %ee ) { 
    did -a $dname 1 $gettok(%link,%fb,44) }
}

Comments

Sign in to comment.
asakura   -  Aug 05, 2009

psh yeh this is ancient history >_>

:D i cant wait to finish my new one but i play cod to much :D

 Respond  
PATX   -  Mar 14, 2009

i like what u treid to do. i give it a 4. if the coding gets better, i change it to a 5

 Respond  
PuNkTuReD   -  Jan 03, 2009

"run"
should be
"url"

 Respond  
Jonesy44   -  Jan 03, 2009

Because mIRC does not know what application to use to run an "irc.x.x" link. Kind of ironic since it should use itself..

 Respond  
wann135lc   -  Jan 03, 2009

/run: unable to open 'irc.dal.net' (line 22, script1.ini)

  • /run: unable to open 'irc.kampungchat.org' (line 22, script1.ini)
  • why bro??

 Respond  
asakura   -  Jul 29, 2008

haha will do. just some day ... or year lol

 Respond  
EL   -  Jul 29, 2008

Should make the dialog smaller man and add a edit field in place of the input bbox.And maybe add a hotlink to add the links you see in chat to the list that would be neat.And maybe add a msg button to give others you URL.Oh and maybe switch the token for .txt files to hold more.`-.-´

 Respond  
guest598594   -  Jul 29, 2008

Forget the bottom? :)

Edit: oh btw, in the init, you can use /didtok instead of looping through each token.

/didtok name id C text

So name would be $dname, id would be 1, C would be 44, and text would be %link.

 Respond  
juhapuha   -  Jul 29, 2008

Fix your script. There are bracket missmatches.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.