mIRC Home    About    Download    Register    News    Help

Print Thread
#50352 20/09/03 09:24 AM
Joined: Jul 2003
Posts: 655
Om3n Offline OP
Fjord artisan
OP Offline
Fjord artisan
Joined: Jul 2003
Posts: 655
Ok here is my code so you can see what i am doing... What seems to be the problem is that writeini is automatically stripping the text as it write to the ini file. My question is, assuming my code if all fine of corse, is there a way around this? I need to be able to use bold and the ctrl+o.

dialog code :: edit "", 32, 52 20 82 17, tab 4 multi autovs limit 110
within the dialog init sequence :: did -ra $dname 32 $rls.set(test)
within the dialog sclick function for saving settings ::
Code:
      if ($did($dname,32).text != $null) {
        var %x = 1,%text
        while (%x <= $did($dname,32).lines) {
          set %text %text $did($dname,32,%x).text
          inc %x
        }
        writeini $script pref test %text | echo %text
      }


It echo' the %text correctly and it will load any text formatting into the dialog if i manually edit the ini file and put it there.


"Allen is having a small problem and needs help adjusting his attitude" - Flutterby
#50353 20/09/03 09:46 AM
Joined: Dec 2002
Posts: 774
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
.ini files doesn't support control codes, $replace them to something


Code:
//if ( khaled isgod ) echo yes | else echo no
#50354 20/09/03 02:35 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
also, not really relevant but:

if ($did($dname,32).text) {
works the same as:
if ($did($dname,32).text != $null) {
except:
if ($did($dname,32).text) {
classes '0' as $null


new username: tidy_trax
#50355 20/09/03 08:44 PM
Joined: Jul 2003
Posts: 655
Om3n Offline OP
Fjord artisan
OP Offline
Fjord artisan
Joined: Jul 2003
Posts: 655
oh i see, thanks, yeah ill just use a replace on write and read

and i know some of the code is useless hehe, i optimize segments after they are all working how i want : )


"Allen is having a small problem and needs help adjusting his attitude" - Flutterby

Link Copied to Clipboard