Kod: Kodu kopyalamak için üzerine çift tıklayın!
alias AFradyo { .timercloseaf -m 1 10 dialog $iif(!$dialog(AF-Rd),-m,-c) af-rd af-rd }
dialog AF-Rd {
title "AfraN Script v.06 Radyo Player"
size -1 -1 172 152
option dbu
list 4, 107 15 60 13, size
list 10, 5 31 162 106, size
}
on *:dialog:AF-Rd:close:*:{
dll $bamp_in Stop
sockclose AF-Rd
}
on *:dialog:AF-Rd:init:*:{
dll dlls\mdx.dll SetMircVersion $version
dll dlls\mdx.dll MarkDialog $dname
dll dlls\mdx.dll SetDialog $dname Style title
dll dlls\mdx.dll SetDialog $dname bgcolor %Diacolors
dll dlls\mdx.dll SetFont $dname 10,11 +b 14 700 Tahoma
.disable #radsh1
dll dlls\mdx.dll SetControlMDX 10 listview report single Sortascending grid rowselect oneclick Underlinehot > dlls\views.mdx
dll dlls\mdx.dll SetColor 4 background %Listark
dll dlls\mdx.dll SetColor 4 textbg %textark
dll dlls\mdx.dll SetColor 4 text %buttextcolors
did -i $dname 10 1 setbkg color %Listark
did -i $dname 10 1 settxt color %buttextcolors
did -i $dname 10 1 settxt bgcolor %Listark
did -i $dname 10 1 headerdims 125:1 260:2 52:3
did -i $dname 10 1 headertext + 1 Radyo isim $chr(9) $+ 1 Radyo url adresleri $chr(9) $+ +b port
dll dlls\mdx.dll SetControlMDX 4 Trackbar horizontal noticks tooltips both > dlls\bars.mdx
did -i $dname 4 1 params %AFrad-ses 0 100 * * * * 18
did -i $dname 4 1 ticfreq 2
mdc BitBtn create $dname 597 0 0 344 24 > Radyo su anda acik degil
mdc BitBtn Color 597 %dibutcolors
mdc BitBtn downcolor 597 %dibutdowncolors
mdc BitBtn Font 597 %buttextcolors 14 +u > Tahoma
mdc BitBtn Create $dname 590 10 30 28 26 > +
mdc BitBtn Color 590 %dibutcolors
mdc BitBtn downcolor 590 %dibutdowncolors
mdc BitBtn Font 590 %buttextcolors 13 +b > Tahoma
mdc BitBtn Create $dname 591 44 30 28 26 > -
mdc BitBtn Color 591 %dibutcolors
mdc BitBtn downcolor 591 %dibutdowncolors
mdc BitBtn Font 591 %buttextcolors 13 +b > Tahoma
mdc BitBtn Create $dname 592 78 30 28 26 > X
mdc BitBtn Color 592 %dibutcolors
mdc BitBtn downcolor 592 %dibutdowncolors
mdc BitBtn Font 592 %buttextcolors 13 +b > Webdings
mdc BitBtn Create $dname 593 112 30 28 26 > 4
mdc BitBtn Color 593 %dibutcolors
mdc BitBtn downcolor 593 %dibutdowncolors
mdc BitBtn Font 593 %buttextcolors 13 +b > Webdings
mdc BitBtn Create $dname 594 146 30 28 26 > <
mdc BitBtn Color 594 %dibutcolors
mdc BitBtn downcolor 594 %dibutdowncolors
mdc BitBtn Font 594 %buttextcolors 13 +b > Webdings
mdc BitBtn Create $dname 595 180 30 28 26 > 5
mdc BitBtn Color 595 %dibutcolors
mdc BitBtn downcolor 595 %dibutdowncolors
mdc BitBtn Font 595 %buttextcolors 13 +b > Webdings
mdc BitBtn Create $dname 596 100 278 140 22 > Tamam kapat
mdc BitBtn Color 596 %dibutcolors
mdc BitBtn downcolor 596 %dibutdowncolors
mdc BitBtn Font 596 %buttextcolors 11 +b > Tahoma
Afradiolist
}
#rmut off
#rmut end
alias Afradiolist {
did -r AF-Rd 10
var %a = 1
while (%a <= $lines($shortfn($scriptdirAFRadlist.txt))) {
did -a AF-Rd 10 + $gettok($read($shortfn($scriptdirAFRadlist.txt),%a),3,32) $chr(9) $+ $gettok($read($shortfn($scriptdirAFRadlist.txt),%a),1,32) $chr(9) $gettok($read($shortfn($scriptdirAFRadlist.txt),%a),2,32)
inc %a
}
}
#radsh1 off
#radsh1 end
on *:dialog:AF-Rd:sclick:*:{
if $did == 4 {
dll $bamp_in Misc setvolume $gettok($did(4,1),1,32)
set %AFrad-ses $gettok($did(4,1),1,32)
did -i AF-Rd 4 1 tipText Ses: % $+ %AFrad-ses
}
}
alias afradyocal {
if ($dialog(AF-Rd)) && ($sock(AF-Rd)) {
mdc BitBtn text 597 > $iif($sock(AF-Rd),Radyo Caliyor... $chr(91) $+ %radname $+ $chr(93),Bekleyin baglaniyor..)
}
}
alias AfraNradio {
dll $bamp_in Stop
if (!$exists($shortfn($mircdirAfraN\AfraNRad.mp3))) { write $shortfn($mircdirAfraN\AfraNRad.mp3) }
if ($exists($shortfn($mircdirAfraN\AfraNRad.mp3))) { .remove $shortfn($mircdirAfraN\AfraNRad.mp3) }
sockclose AF-Rd
if ($dialog(AF-Rd)) { mdc BitBtn text 597 > Baglanti kesildi. }
dll $bamp_in Stop
sockopen AF-Rd $remove($$1,http://,/) $2
if ($dialog(AF-Rd)) mdc BitBtn text 597 > Bekleyin baglaniyor...
}
on *:sockclose:AF-Rd:{
dll $bamp_in Stop
if ($dialog(AF-Rd)) {
mdc BitBtn text 597 > Baglantida hata olustu...
}
if ($sokerr) { AFradio $sock($sockname).ip $sock($sockname).port }
}
on *:sockopen:AF-Rd:{
if ($sockerr) { if ($dialog(AF-Rd)) mdc BitBtn text 597 > Baglantida hata olustu, baglanti yok... | return }
else {
sockwrite -n $sockname GET / HTTP/1.0
sockwrite -n $sockname Host: $sock($sockname).ip
sockwrite -n $sockname User-Agent: AfraN Radio Player
sockwrite -n $sockname Accept: */*
sockwrite -n $sockname Connection: close
sockwrite -n $sockname
sockmark $sockname afran!
}
}
on *:sockread:AF-Rd:{
if ($sock(AF-Rd).mark == afran!) {
sockread &radio 8192
while ($sockbr) {
set %AFrad-sockbr $sockbr
bwrite $shortfn($mircdir/AfraN\) $+ AfraNRad.mp3 -1 -1 &radio
sockread &radio 8192
}
var %m = $shortfn($mircdir/AfraN\) $+ AfraNRad.mp3
if ($exists($shortfn($shortfn($scriptdir/AfraNRad.mp3)))) && ($int($bytes($file(%m).size,k)) >= 150) && ($gettok($dll($bamp_in,CurrentMusic,status),2,32) == stopped) {
if ($dialog(AF-Rd)) { mdc BitBtn text 597 > $chr(91) $+ %radname $+ $chr(93) Radyo Caliyor.. }
bplay %m
}
}
}
alias bplay { dll $bamp_in Stop | dll $bamp_in Play $remove($1-,") }
alias bamp_in { return $shortfn($mircdirDlls/amp_in.dll) }
alias ampload-all-input return $findfile($shortfn($mircdirDlls/),in_*.dll,0,1,ampload-input-plugin $1-)
alias ampload-waveout dll $bamp_in PluginManager load output $shortfn($mircdirDlls/out_wave.dll)
alias ampload-input-plugin dll $bamp_in PluginManager load input $1-
alias ampload { ampload-all-input | ampload-waveout }
on *:signal:mdc: {
if ($2 == AF-Rd) && ($3 == sclick) {
if ($4 == 590) {
var %H = $input(Portsuz radio link ekleyin. Orn; http://149.202.159.241,1,Radyo ekle)
if (%H == $null) { return }
var %i = $input(Linksiz Port ekleyin. Orn;7009,1,port ekle)
if (%i == $null) { return }
var %d = $input(Radyo ismi ekleyin. Orn;GevezeFm,1,Isim ekle)
if (%d == $null) { return }
write $shortfn($mircdirAfraN\AFRadlist.txt) %H %i %d
Afradiolist
}
if ($4 == 591) { run $mircdirafran\AFradlist.txt }
if ($4 == 592) {
$iif($group(#rmut) == on,.disable,.enable) #rmut
if ($group(#rmut) == on) {
mdc BitBtn text 592 > x
vol -vu1
}
else {
mdc BitBtn text 592 > X
vol -vu2
}
}
if ($4 == 593) {
if ($did($2,10,1).sel == 0) { echo -a Listeden bir radyo url adresi seciniz. | return }
else {
AfraNradio $gettok($did($2,10).seltext,11,32) $gettok($gettok($did($2,10).seltext,16,32),1,43)
set -e %radname $gettok($did($2,10,1).seltext,6,32)
}
}
if ($4 == 594) {
sockclose AF-Rd
mdc BitBtn text 597 > Radyo durduruldu.!
dll $bamp_in Stop
}
if ($4 == 595) {
if $group(#radsh1) == off {
var %a1f 304
while (62 <= %a1f) { dialog -s af-rd -1 -1 344 %a1f | dec %a1f }
mdc BitBtn text 595 > 6
.enable #radsh1
}
else {
var %a2f 62
while (%a2f <= 304) { dialog -s af-rd -1 -1 344 %a2f | inc %a2f }
mdc BitBtn text 595 > 5
.disable #radsh1
}
}
if ($4 == 596) { AFRadyo }
}
}
on *:start: { ampload }
Merhaba Arkadaşlar. Uzun süredir radyo player arıyorum fakat çalışır halde bir addon bulamadım.
Afran scriptin bir radyo player ini buldum fakat buda radyo link port adresini dialogta göstermiyor. bu sebeple çalışmıyor.
Bu addonu aktif hale getirebilirseniz, bu konuda yardımcı olursanız çok memnun olurum.