mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2002
Posts: 111
F
Frog Offline OP
Vogon poet
OP Offline
Vogon poet
F
Joined: Dec 2002
Posts: 111
Ok, this alias..

Code:
alias -l dsave {
  var %l 0
  while (%l < $did(Quotes,3).lines) {
    inc %l
    write -c $readini(FQuotes.ini,FQuotes,Dir)
    .timerFW. [ $+ [ %l ] ] 1 1 write $readini(FQuotes.ini,FQuotes,Dir) $did(Quotes,3,%l)
  }
}


..reads from the listbox, whose ID is 3, and writes it to the file like it's supposed to.

Now, the problem is..that alias works, completely, but if there's a $ in any of the lines of the dialog's listbox, /write tries to evaluate it..and I didn't see any switch for /write, or $did, to keep it from attempting to evaluate any possible identifiers.

Any ideas?


Experience The Void.. Are You Ready?
Joined: Aug 2003
Posts: 19
P
Pikka bird
Offline
Pikka bird
P
Joined: Aug 2003
Posts: 19
Three ways at least to solve this,

1, remove the /timer and simply use only the /write alias
2, if you want the timer, use $eval($did(),0)
3, use /filter

Yours,


Propogater @ DALnet, #HelpDesk and #Help
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
  • alias -l dsave { savebuf -o Quotes 3 $readini(FQuotes.ini,FQuotes,Dir) }



Link Copied to Clipboard