alias textplay { if (!$dialog(textplay)) { dialog -mh textplay textplay | pdplay $pdsounds(DialogOpen) } } dialog textplay { title "" size -1 -1 320 76 option pixels icon $icons(PDIcons.icl), 75 box "", 1, 6 2 309 70 edit "", 2, 14 18 260 20, autohs button "...", 3, 276 18 30 18 combo 4, 14 44 140 140, size drop button "", 5, 160 44 70 20, disable button "", 6, 236 44 70 20, disable menu "", 7 item "", 8, 7 item break, 9, 7 item "", 10, 7, ok } alias load_textplay { if ($dialog(textplay)) { dialog -t textplay $lang(TextPlayer,Title) did -ra textplay 1 $lang(TextPlayer,01) did -ra textplay 5 $lang(TextPlayer,02) did -ra textplay 6 $lang(TextPlayer,03) did -o textplay 7 $lang(TextPlayer,04) did -o textplay 8 $lang(TextPlayer,05) did -o textplay 10 $lang(General,Exit) } } on *:dialog:textplay:init:0:{ txtplaylist | load_textplay } on *:dialog:textplay:sclick:*:{ if ($did == 3) { if (!$isdir($conf(TextPlay,LastDir))) { $conf(w,TextPlay,LastDir,C:\) } var %text = $$sfile($conf(TextPlay,LastDir) *.txt,$lang(TextPlayer,07),$lang(General,Add)) if (%text) { $conf(w,TextPlay,LastDir,$nofile(%text)) did -ra $dname 2 %text did -e $dname 5 } } if ($did == 5) { set %txt 0 set %txtchan $iif($did(4).sel == 1,$active,$did(4).text) set %txtfile $shortfn($did(2).text) txtgoplay did -b $dname 5 did -e $dname 6 } if ($did == 6) { set %txt $calc(10^10) | did -b $dname 6 | did -e $dname 5 } } on *:dialog:textplay:edit:2:{ if ($did(2).text) { did -e $dname 5 } else { did -b $dname 5 } } on *:dialog:textplay:menu:*:{ if ($did == 8) { txtplaylist } } on *:dialog:textplay:close:0:{ pdplay $pdsounds(DialogClose) } alias txtplaylist { if ($dialog(textplay)) { did -ra textplay 4 $lang(TextPlayer,06) } var %txtchan = 1 while (%txtchan <= $chan(0)) { did -a textplay 4 $chan(%txtchan) inc %txtchan } if ($dialog(textplay)) { did -kc textplay 4 1 } } alias txtgoplay { if (%txt < $lines(%txtfile)) { inc %txt msg %txtchan $read(%txtfile,%txt) .timertxt -m 1 500 txtgoplay } else { unset %txt* if ($dialog(textplay)) { did -e textplay 5 did -b textplay 6 } } } alias stilimsg { if (!$dialog(stilimsg)) { dialog -m stilimsg stilimsg } } dialog stilimsg { title "" size -1 -1 203 265 option pixels icon $icons(PDIcons.icl), 47 box "", 1, 5 3 194 99 check "", 2, 12 19 180 20 check "", 3, 12 38 180 20 check "", 4, 12 75 64 20 box "", 6, 5 102 194 117 check "", 7, 12 119 180 20 check "", 8, 12 138 180 20 check "", 9, 12 157 180 20 check "", 10, 12 175 180 20 check "", 11, 12 194 94 20 box "", 13, 5 220 194 40 check "", 14, 12 235 64 20 check "", 5, 12 56 180 20 } alias load_stilimsg { if ($dialog(stilimsg)) { dialog -t stilimsg $lang(TextStyles,Title) did -ra stilimsg 1 $lang(TextStyles,01) did -ra stilimsg 2 $lang(TextStyles,02) did -ra stilimsg 3 $lang(TextStyles,03) did -ra stilimsg 4 $lang(TextStyles,04) did -ra stilimsg 6 $lang(TextStyles,05) did -ra stilimsg 7 $lang(TextStyles,06) did -ra stilimsg 8 $lang(TextStyles,07) did -ra stilimsg 9 $lang(TextStyles,08) did -ra stilimsg 10 $lang(TextStyles,09) did -ra stilimsg 11 $lang(TextStyles,10) did -ra stilimsg 13 $lang(TextStyles,11) did -ra stilimsg 14 $lang(TextStyles,04) did -ra stilimsg 5 $lang(TextStyles,12) } } on *:dialog:stilimsg:init:*:{ dcx Mark $dname cb_stili xdialog -c $dname 5 colorcombo 81 76 50 130 xdialog -c $dname 15 colorcombo 81 234 50 130 xdialog -c $dname 16 colorcombo 142 76 50 130 xdialog -c $dname 17 colorcombo 142 234 50 130 xdialog -c $dname 12 colorcombo 110 195 50 130 load_stilimsg if ($conf(StiliMsg,Grassetto) == Si) { did -c $dname 2 } if ($conf(StiliMsg,Sottolineato) == Si) { did -c $dname 3 } if ($conf(StiliMsg,Colorato) == Si) { did -c $dname 4 } if ($conf(StiliMsg,Corsivo) == Si) { did -c $dname 5 } if ($conf(StiliMsg,Ascii) == Si) { did -c $dname 7 } if ($conf(StiliMsg,Arcobaleno) == Si) { did -c $dname 8 } if ($conf(StiliMsg,Hacker) == Si) { did -c $dname 9 } if ($conf(StiliMsg,Rovescio) == Si) { did -c $dname 10 } if ($conf(StiliMsg,Testo3D) == Si) { did -c $dname 11 } if ($conf(StiliMsg,Urla) == Si) { did -c $dname 14 } var %stili = 0 while (%stili <= 15) { xdid -a $dname 5,15,16,17 $calc(%stili + 1) $color(%stili) inc %stili } xdid -a $dname 12 1 $color(3) xdid -a $dname 12 2 $color(6) xdid -a $dname 12 3 $color(5) xdid -a $dname 12 4 $color(14) xdid -a $dname 12 5 $color(2) xdid -c $dname 5 $conf(StiliMsg,Colore) xdid -c $dname 15 $conf(StiliMsg,ColoreUrla) xdid -c $dname 16 $conf(StiliMsg,ColoreSfondo) xdid -c $dname 17 $conf(StiliMsg,ColoreUrlaSfondo) xdid -c $dname 12 $conf(StiliMsg,Colore3D) } on *:dialog:stilimsg:sclick:*:{ if ($did == 2) { if ($did(2).state == 1) { did -u $dname 11 $conf(w,StiliMsg,Grassetto,Si) $conf(w,StiliMsg,Testo3D,No) } else { $conf(w,StiliMsg,Grassetto,No) } } if ($did == 3) { if ($did(3).state == 1) { did -u $dname 11 $conf(w,StiliMsg,Sottolineato,Si) $conf(w,StiliMsg,Testo3D,No) } else { $conf(w,StiliMsg,Sottolineato,No) } } if ($did == 4) { if ($did(4).state == 1) { did -u $dname 8,11 $conf(w,StiliMsg,Colorato,Si) $conf(w,StiliMsg,Arcobaleno,No) $conf(w,StiliMsg,Testo3D,No) } else { $conf(w,StiliMsg,Colorato,No) } } if ($did == 5) { if ($did(5).state == 1) { did -u $dname 11 $conf(w,StiliMsg,Corsivo,Si) $conf(w,StiliMsg,Testo3D,No) } else { $conf(w,StiliMsg,Corsivo,No) } } if ($did == 7) { if ($did(7).state == 1) { did -u $dname 9 $conf(w,StiliMsg,Ascii,Si) $conf(w,StiliMsg,Hacker,No) } else { $conf(w,StiliMsg,Ascii,No) } } if ($did == 8) { if ($did(8).state == 1) { did -u $dname 4,11 $conf(w,StiliMsg,Arcobaleno,Si) $conf(w,StiliMsg,Colorato,No) $conf(w,StiliMsg,Testo3D,No) } else { $conf(w,StiliMsg,Arcobaleno,No) } } if ($did == 9) { if ($did(9).state == 1) { did -u $dname 7 $conf(w,StiliMsg,Hacker,Si) $conf(w,StiliMsg,Ascii,No) } else { $conf(w,StiliMsg,Hacker,No) } } if ($did == 10) { if ($did(10).state == 1) { $conf(w,StiliMsg,Rovescio,Si) } else { $conf(w,StiliMsg,Rovescio,No) } } if ($did == 11) { if ($did(11).state == 1) { did -u $dname 2,3,4,5,8 $conf(w,StiliMsg,Testo3D,Si) $conf(w,StiliMsg,Arcobaleno,No) $conf(w,StiliMsg,Colorato,No) $conf(w,StiliMsg,Grassetto,No) $conf(w,StiliMsg,Corsivo,No) $conf(w,StiliMsg,Sottolineato,No) } else { $conf(w,StiliMsg,Testo3D,No) } } if ($did == 14) { if ($did(14).state == 1) { $conf(w,StiliMsg,Urla,Si) } else { $conf(w,StiliMsg,Urla,No) } } } alias cb_stili { if ($2 == sclick) { if ($3 == 5) { $conf(w,StiliMsg,Colore,$4) } if ($3 == 12) { $conf(w,StiliMsg,Colore3D,$4) } if ($3 == 15) { $conf(w,StiliMsg,ColoreUrla,$4) } if ($3 == 16) { $conf(w,StiliMsg,ColoreSfondo,$4) } if ($3 == 17) { $conf(w,StiliMsg,ColoreUrlaSfondo,$4) } } } alias stilerep { return $tredrep($arcorep($colorrep($corsrep($grassrep($sottrep($revrep($hackrep($asciirep($1-))))))))) } alias grassrep { if ($conf(StiliMsg,Grassetto) == Si) { return  $+ $1- } | else { return $1- } } alias sottrep { if ($conf(StiliMsg,Sottolineato) == Si) { return  $+ $1- } | else { return $1- } } alias corsrep { if ($conf(StiliMsg,Corsivo) == Si) { return  $+ $1- } | else { return $1- } } alias colorrep { if ($conf(StiliMsg,Colorato) == Si) { return  $+ $calc($conf(StiliMsg,Colore) - 1) $+ $chr(44) $+ $calc($conf(StiliMsg,ColoreSfondo) - 1) $+ $1- } | else { return $1- } } alias asciirep { if ($conf(StiliMsg,Ascii) == Si) { return $asciicod($1-) } | else { return $1- } } alias arcorep { if ($conf(StiliMsg,Arcobaleno) == Si) { return $rain($1-) } | else { return $1- } } alias hackrep { if ($conf(StiliMsg,Hacker) == Si) { return $hacker($1-) } | else { return $1- } } alias revrep { if ($conf(StiliMsg,Rovescio) == Si) { return $rev($1-) } | else { return $1- } } alias tredrep { if ($conf(StiliMsg,Testo3D) == Si) { return $tredtxt($replace($conf(StiliMsg,Colore3D),1,tredv,2,tredf,3,tredr,4,tredg,5,tredb),$1-) } | else { return $1- } } alias rain { if ($1) { var %LL = 04,07,08,09,12,11,13 var %ctl = 1 var %ct = 1 while (%ct <= $len($1-)) { var %new = %new $+  $+ $gettok(%LL,%ctl,44) $+ $iif($mid($1-,%ct,1) != $chr(32), $+ $mid($1-,%ct,1), $chr(32) $+ $mid($1-,%ct,1)) inc %ctl if (%ctl > 7) { var %ctl = 1 } inc %ct } if ($isid) { return %new $+  } else { say %new $+  } } } alias hacker { if ($1) { var %hacker $1- %hacker = $replace(%hacker,A,4,E,3,I,1,O,0,S,5,T,7) if ($isid) { return %hacker } else { say %hacker } } } alias asciicod { if ($1) { var %ascii $1- %ascii = $replace(%ascii,?,¿,!,¡,0,Ø,a,Â,b,ß,c,©,d,Ð,e,£,h,|-|,i,Î,k,I<,l,|_,n,ñ,o,ø,p,¶,r,®,s,§,u,µ,v,\/,w,\\',x,×,y,¥) if ($isid) { return %ascii } else { say %ascii } } } alias rev { var %old = $1-, %temp = $len(%old), %char, %string while (%temp > 0) { %char = $mid($1-,%temp,1) if (%char = $chr(32)) { dec %temp %char = $mid(%old,%temp,1) %string = %string %char } else { %string = %string $+ %char } dec %temp } if ($isid) { return %string } else { say %string } } alias tredtxt { if ($2) { if ($1 == tredf) { var %mytext.txt $strip($2-) var %conta = 1 while (%conta <= $len(%mytext.txt)) { if ($mid(%mytext.txt,%conta,1) == $chr(32)) { var %mytext.tmp 1,14(15,14) } else { var %mytext.tmp = 13,6(00 $mid(%mytext.txt,%conta,1) 1,6) } var %mytext %mytext %mytext.tmp inc %conta } %mytext = $remove(%mytext,$chr(32)) if ($isid) { return %mytext } else { say %mytext } } elseif ($1 == tredb) { var %mytext.txt $strip($2-) var %conta = 1 while (%conta <= $len(%mytext.txt)) { if ($mid(%mytext.txt,%conta,1) == $chr(32)) { var %mytext.tmp 1,14(15) } else { var %mytext.tmp = 12,2(00 $mid(%mytext.txt,%conta,1) 1) } var %mytext %mytext %mytext.tmp inc %conta } %mytext = $remove(%mytext,$chr(32)) if ($isid) { return %mytext } else { say %mytext } } elseif ($1 == tredv) { var %mytext.txt $strip($2-) var %conta = 1 while (%conta <= $len(%mytext.txt)) { if ($mid(%mytext.txt,%conta,1) == $chr(32)) { var %mytext.tmp 1,14(15) } else { var %mytext.tmp = 9,3(00 $mid(%mytext.txt,%conta,1) 1) } var %mytext %mytext %mytext.tmp inc %conta } %mytext = $remove(%mytext,$chr(32)) if ($isid) { return %mytext } else { say %mytext } } elseif ($1 == tredr) { var %mytext.txt $strip($2-) var %conta = 1 while (%conta <= $len(%mytext.txt)) { if ($mid(%mytext.txt,%conta,1) == $chr(32)) { var %mytext.tmp 1,14(15) } else { var %mytext.tmp = 4,5(00 $mid(%mytext.txt,%conta,1) 1) } var %mytext %mytext %mytext.tmp inc %conta } %mytext = $remove(%mytext,$chr(32)) if ($isid) { return %mytext } else { say %mytext } } elseif ($1 == tredg) { var %mytext.txt $strip($2-) var %conta = 1 while (%conta <= $len(%mytext.txt)) { if ($mid(%mytext.txt,%conta,1) == $chr(32)) { var %mytext.tmp 1,14(15) } else { var %mytext.tmp = 15,14(00 $mid(%mytext.txt,%conta,1) 1) } var %mytext %mytext %mytext.tmp inc %conta } %mytext = $remove(%mytext,$chr(32)) if ($isid) { return %mytext } else { say %mytext } } } } alias rucode { if ($conf(StiliMsg,Urla) == Si) { return $replace($1-,c,$calc($conf(StiliMsg,ColoreUrla) - 1) $+ $chr(44) $+ $calc($conf(StiliMsg,ColoreUrla) - 1),b,$calc($conf(StiliMsg,ColoreUrlaSfondo) - 1) $+ $chr(44) $+ $calc($conf(StiliMsg,ColoreUrlaSfondo) - 1)) } else { return $replace($1-,c,0 $+ $chr(44) $+ 0,b,1 $+ $chr(44) $+ 1) } } alias urla { if ($1) { var %urlalen = $len($strip($1-)) var %urlacount = 1 while (%urlacount <= %urlalen) { var %urlachar = $asc($upper($mid($strip($1-),%urlacount,1))) var %urlaline1 = %urlaline1 $+ $rcode($rucode($readini($urlafile,%urlachar,n1))) var %urlaline2 = %urlaline2 $+ $rcode($rucode($readini($urlafile,%urlachar,n2))) var %urlaline3 = %urlaline3 $+ $rcode($rucode($readini($urlafile,%urlachar,n3))) var %urlaline4 = %urlaline4 $+ $rcode($rucode($readini($urlafile,%urlachar,n4))) var %urlaline5 = %urlaline5 $+ $rcode($rucode($readini($urlafile,%urlachar,n5))) inc %urlacount } say %urlaline1 say %urlaline2 say %urlaline3 say %urlaline4 say %urlaline5 } }