mIRC variables set by /writeini /readini - 16/03/13 12:31 AM
I want to build a handler for the loading and saving of the themes of the script, writing variables mirc in a ini file numbering each time you save.
To do that you have completed so the code
Here is how advanced the number in the file. Ini
When i read the variables loading them in mirc, configuration is loaded numbered with the number [1]
How do i upload the numbered setting i have chosen?
To do that you have completed so the code
Code:
; set the numerator to set variables in a consecutive manner alias save_theme_number { 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 load_vars { set %stile $readini($shortfn($mircdir $+ vxd.ini),n,%x.ini,stile) set %chiarox $readini($shortfn($mircdir $+ vxd.ini),n,%x.ini,chiarox) }
Here is how advanced the number in the file. Ini
Code:
[1] stile=verticalrev chiarox=255 [2] stile=grade chiarox=200 ...etc
When i read the variables loading them in mirc, configuration is loaded numbered with the number [1]
How do i upload the numbered setting i have chosen?