mIRC Home    About    Download    Register    News    Help

Print Thread
#169523 24/01/07 04:46 PM
Joined: Apr 2005
Posts: 1,008
R
raZOR Offline OP
Hoopy frood
OP Offline
Hoopy frood
R
Joined: Apr 2005
Posts: 1,008
i have some info writen in INI file with spaces like this:

[section]
subsection=info1 info2 info3 info4

so what should i do to listcontrol in dialog
sorts every info in new line like this:

info1
info2
info3

:P

raZOR #169525 24/01/07 07:23 PM
Joined: Apr 2006
Posts: 399
K
Fjord artisan
Offline
Fjord artisan
K
Joined: Apr 2006
Posts: 399
are there any dialogs or any script that we are able to see? I'm not at home, otherwise I would work on it, but, are there any scripts or any sort having to do with this that you can show?

Joined: Apr 2005
Posts: 1,008
R
raZOR Offline OP
Hoopy frood
OP Offline
Hoopy frood
R
Joined: Apr 2005
Posts: 1,008
i have one for private use but its huge and would be pointless to post it here :P

and it doesnt even have to be something special to "use"

im just wondering how to /did -a ID_OF_LIST (path-to-ini-file-with-subsection-and-info)

in multiple lines (as stated in 1st post) :P

so by default in listcontrol you would have it added all
in 1 line with all spaces "info1 info2 info3 ...."
and id like to know how to do it in multiple lines

info1
info2
info3
...

is some loop required or... what? :P
coz i cant use tokens coz "info" number is never same

Last edited by raZOR; 24/01/07 07:58 PM.
raZOR #169528 24/01/07 07:59 PM
Joined: Jan 2005
Posts: 186
Vogon poet
Offline
Vogon poet
Joined: Jan 2005
Posts: 186
while loop and $gettok


echo -a $signature
Brax #169529 24/01/07 08:00 PM
Joined: Apr 2005
Posts: 1,008
R
raZOR Offline OP
Hoopy frood
OP Offline
Hoopy frood
R
Joined: Apr 2005
Posts: 1,008
any simple sample ? :P (i suck with loops)

raZOR #169530 24/01/07 08:05 PM
Joined: Sep 2005
Posts: 2,630
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,630
Code:
didtok <dialog> <id> 32 $readini(<file.ini>,section,subsection)

hixxy #169531 24/01/07 08:06 PM
Joined: Jan 2005
Posts: 186
Vogon poet
Offline
Vogon poet
Joined: Jan 2005
Posts: 186
now i feel just dumb blush


echo -a $signature
hixxy #169532 24/01/07 08:10 PM
Joined: Apr 2005
Posts: 1,008
R
raZOR Offline OP
Hoopy frood
OP Offline
Hoopy frood
R
Joined: Apr 2005
Posts: 1,008
ohh youre god !
thank you so much !

hixxy #169545 24/01/07 10:13 PM
Joined: Apr 2005
Posts: 1,008
R
raZOR Offline OP
Hoopy frood
OP Offline
Hoopy frood
R
Joined: Apr 2005
Posts: 1,008
ehm i have another problem :P

this info i add to list are actualy nicknames from channel
so they are grouped like:

names=nick1 nick2 nick3 etc...

in sclick event (doesnt matter which) i have this

didtok $dname ID 32 $readini($ini-path, $did($did).seltext, names) $crlf

and this sorts it nice in list and edit control
but now i ask why sortok doesnt work, i added this after
that line:

did -ra ID $sorttok(($readini($ini-path, $did($did).seltext, names),32,c) $crlf

it says invalid format :P

raZOR #169546 24/01/07 10:21 PM
Joined: Sep 2005
Posts: 2,630
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,630
did -ra ID $sorttok(($readini($ini-path, $did($did).seltext, names),32,c) $crlf

hixxy #169547 24/01/07 10:25 PM
Joined: Apr 2005
Posts: 1,008
R
raZOR Offline OP
Hoopy frood
OP Offline
Hoopy frood
R
Joined: Apr 2005
Posts: 1,008
ahh great laugh
thank you laugh

Last edited by raZOR; 24/01/07 10:27 PM.

Link Copied to Clipboard