mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Apr 2012
Posts: 48
Ameglian cow
OP Offline
Ameglian cow
Joined: Apr 2012
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 


A Creative & Interactive mIRC Scripting
Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
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"
Joined: Apr 2012
Posts: 48
Ameglian cow
OP Offline
Ameglian cow
Joined: Apr 2012
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?


A Creative & Interactive mIRC Scripting
Joined: Apr 2012
Posts: 48
Ameglian cow
OP Offline
Ameglian cow
Joined: Apr 2012
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 ^^

Last edited by DEATHJ0KER; 28/06/12 01:22 PM.

A Creative & Interactive mIRC Scripting

Link Copied to Clipboard