As an example, the following code will write a script but the resulting script will be incorrect because one line contains several instances of "%CRLF%".
Code: Select all
WriteLn>%temp_dir%temp.scp,wres,Dialog>Dialog1
WriteLn>%temp_dir%temp.scp,wres, Caption=Write this to a file
WriteLn>%temp_dir%temp.scp,wres, Width=204
WriteLn>%temp_dir%temp.scp,wres, Height=236
WriteLn>%temp_dir%temp.scp,wres, Top=0
WriteLn>%temp_dir%temp.scp,wres, Left=0
WriteLn>%temp_dir%temp.scp,wres, RadioGroup=msRadioGroup1,msRadioGroup1,48,32,97,105,Item1%CRLF%Item2%CRLF%Item3,-1
WriteLn>%temp_dir%temp.scp,wres,EndDialog>Dialog1
WriteLn>%temp_dir%temp.scp,wres,Show>dialog1,res1
Code: Select all
Dialog>Dialog1
Caption=Write this to a file
Width=204
Height=236
Top=0
Left=0
RadioGroup=msRadioGroup1,msRadioGroup1,48,32,97,105,Item1
Item2
Item3,-1
EndDialog>Dialog1
Show>dialog1,res1
Dick