Load - Set variables in a file. Ini

By VxD aka DEATHJ0KER on Dec 19, 2012

Load write %vars to .ini files

;=======================================================;
; Save ~ Themes manager numerator | VxÐ ~ http://vxd.altervista.org/VxD.htm ~ caronte.ade@gmail.com | mIRC ☠  VxÐ ⅜ $®iþ†                             ;
;=======================================================;

; To load variables from INI files with alias command > /read_vars "number"
; [1]
; stile=normal
; chiarox=255
;
; [2]

; set the numerator to set variables in a consecutive manner into .ini files
; [1] 
; [2]
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
alias numerator_n {
  set %x.ini $ini($shortfn($mircdir $+ vxd.ini),0)
  set %x.ini $ini($shortfn($mircdir $+ vxd.ini),%x.ini)
  set %x.ini $calc(%x.ini + 1)
  write_vars
}
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Carries the variables in. Ini file
alias write_vars {
  writeini " $+ $shortfn($mircdir $+ vxd.ini) $+ " %x.ini stile %stile 
  writeini " $+ $shortfn($mircdir $+ vxd.ini) $+ " %x.ini chiarox %chiarox 
}
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Reads the variables from INI files
alias read_vars {
  set %stile $readini($shortfn($mircdir $+ vxd.ini),n,%x.ini,stile)
  set %chiarox $readini($shortfn($mircdir $+ vxd.ini),n,%x.ini,chiarox)
}
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Comments

Sign in to comment.
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.