mIRC Home    About    Download    Register    News    Help

Topic Options
#238066 - 27/06/12 10:18 PM How do I set a variable to second file var.ini
DEATHJ0KER Offline
Ameglian cow

Registered: 26/04/12
Posts: 48
How do I set a variable to second file var.ini, specifying the var.ini file in var.ini1, var2.ini, var3.ini.... ?

How can I specify the file to which to write without using write.ini?

I will write a variable with the command
Code:
 /set %var value 

Top
#238068 - 27/06/12 10:55 PM Re: How do I set a variable to second file var.ini [Re: DEATHJ0KER]
argv0 Offline
Planetary brain

Registered: 13/10/03
Posts: 3918
Loc: Montreal, QC, Canada
Writing variables directly to ini files is poor form. You shouldn't care which ini file the variable is stored in. mIRC also only keeps track of variables from one ini file at a time. If you want to switch it out, use /load -rv var2.ini
_________________________
- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"

Top
#238070 - 28/06/12 12:30 AM Re: How do I set a variable to second file var.ini [Re: argv0]
DEATHJ0KER Offline
Ameglian cow

Registered: 26/04/12
Posts: 48
I make an example using popups, I manage command variables via dialog boxes that you modifying by setting the variables and maintaining a window refresh

I have a number of variables that are set on direct command
basically replaces the values of these variables

looking for the fastest way to change these variables another file .ini

the management of the dialog changes according to the variable reloaded

so I can use many .ini files in a folder
written by /writeini and re-read with /load -rv var2.ini

is it possible?

Top
#238084 - 28/06/12 02:14 PM Re: How do I set a variable to second file var.ini [Re: DEATHJ0KER]
DEATHJ0KER Offline
Ameglian cow

Registered: 26/04/12
Posts: 48
argv0 Thanks again, ok i understand, I am leaving everything unchanged, as it stands, sure I'll reach a large number of variables, but their operation is static, the alias sets the variable and dialog refresh displays the value...

should not create problems in reading, at least not occur again

will upload files created when saving the script's theme (i.e. saving variables on another file var.ini which will be charged to change the theme with that wanted with /load -rv var2.ini)

tnx again ^^


Edited by DEATHJ0KER (28/06/12 02:22 PM)

Top