From b364b98115af267259ebaa823818e29998af2596 Mon Sep 17 00:00:00 2001 From: Turbosmurfen <59809061+turbosmurfen@users.noreply.github.com> Date: Fri, 29 Mar 2024 23:23:29 +0100 Subject: [PATCH] Replaced "Spoton Mirc Addon" folder with zipped version. --- Spoton mIRC Addon/img/forwardtrack.ico | Bin 1150 -> 0 bytes Spoton mIRC Addon/img/nexttrack.ico | Bin 1150 -> 0 bytes Spoton mIRC Addon/img/playpausetrack.ico | Bin 1150 -> 0 bytes Spoton mIRC Addon/img/previoustrack.ico | Bin 1150 -> 0 bytes Spoton mIRC Addon/img/rewindtrack.ico | Bin 1150 -> 0 bytes Spoton mIRC Addon/spoton.mrc | 292 ----------------------- 6 files changed, 292 deletions(-) delete mode 100644 Spoton mIRC Addon/img/forwardtrack.ico delete mode 100644 Spoton mIRC Addon/img/nexttrack.ico delete mode 100644 Spoton mIRC Addon/img/playpausetrack.ico delete mode 100644 Spoton mIRC Addon/img/previoustrack.ico delete mode 100644 Spoton mIRC Addon/img/rewindtrack.ico delete mode 100644 Spoton mIRC Addon/spoton.mrc diff --git a/Spoton mIRC Addon/img/forwardtrack.ico b/Spoton mIRC Addon/img/forwardtrack.ico deleted file mode 100644 index ad6443310b48fda1a924057accb7a131d25eb1da..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1150 zcmb7^U2ofD7>13+57-gMNaTPM1TACzN*a}J>PkyjM$>ehamIf@Fc>XVz(#3{Mn&6% zeu%MbB``LP(y8kQNKC*a7!pk5V=IbNCvI#fw&OU~#rr0es!ct?*5&(o@B6te`NWFy zkhl*VP{i|5<&}pO(Y{pc zss}&Dh^8ohuTjhw>u46vMjmG+x98<7?4NbqSAWCqyo@P2>N8Vh4t<2t@fr4w9FFDO zkNLn^<^>z)x{A@egxYjgFoDszK>4PQ=X&?!JaCqIsZ4o8#q3LwZJtDJ8N)b|#QSxJ zs$Z?+`BZQ2;QyfSc{00W;SK+U)0@KR`jl*V9JTE<#?fgiw{(IaAlNG5fA9-_f12uw zTKDoUe)11018FM9mvH;fVf7^0j*g+WzlYiT36(2<;h(=v<)w>MV(0N=7pTtvPO!X% z|MI1pR~by<#XiR!Sj6g^Mms!4HaaT43MyM!41pkSAkb2;ZXq!m#dtIl4Tup;14PAuMV6R= zM3!ift(3w^gT{;TB0_1Wr5)OtDKl+nCSQNAEs`28&gApn`+b*pn8R?~K6*1UI9d;K z4f{Fn0LO8M36e-j>a^|otY!At*E8+LdS)Nonf=57+=po23+7RVWm$)Hy+`^Df7S>B z*<%Q1PeRE00O1(pBZQ+V*qLeMu?)-lvxdRCzU(0gx#I}uPeII|fs{87IoAO>XMu30 zSb&r}Pu?7){8@wxK0(ME2kZKd4Cn)X4x{2kF#4uro15?R(^UH)V@!VNCSLHRF{ z-y+l=H)LM=tH~Y_%BUBSAEAUMHY_E&e9m)(Z#bbyN;={{^Nyd=Me6XmFNjWvHywzn zv2>JZ`n=;S$((r00bgDh_n`JimN?IXacnQVahiLr( zV%8zV>-UCvQR^U7%NxiSUm;NO418%b!quIKSh}HJdW~oTJMDy(<`k;67YxPPgGhZh z#F{Py&a}Z>+GGe-Z4k{JkSv{$EnP{>bgtV)sw1BeiEynAtmCh2G5E43d*ED)5v*z@ q?FoYCA0u$KneJ}JX5}Mno=(S4v%lgYeC17sxBP*9&!577h<^b5rXQaG diff --git a/Spoton mIRC Addon/img/playpausetrack.ico b/Spoton mIRC Addon/img/playpausetrack.ico deleted file mode 100644 index 8af15576f074ef4ed01177ed0cfb991c61375f0f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1150 zcmb7^OHUJF6o$vdAK=QhiI}+ZLez38s3@XDkz1jxy@bSQysV9gc#D@1Xe3~2K|l>c z08tUCNQvjIZY#Du#rOojh~C?>XnqNoG-w+d$8zO&qt;e+%23uEi{uv6$5fU)EEi8@{bn*Ms$FhRw1J%P#HcHUhi* z5zHQfnEe{!?l%y3G2TMlnSq^|V?CM)(JafbtdQLc(K3u^?mNi2Zpb+kP%M*#2g<$- z>`adJ*i1BU4B?ztU|C^L4P0+%3W>aFVkX1%inC6cGjhQ=BKad` zR@l>tNc9JZBa4Wg{eonn2g!mdsMb$V?#v@JBS2}GBj+`Hkv<=SUOyt0ZpwEOPDD;m zLG+6d=R;5ienG98MXJz?*bBk*F_$0eeh<`x9zC%@!AeZl@0_;?_=rEbt7C(-@w)i zrN%*ID!VhPSCFe)@Rw*+Gs5K$5GcKE@Q1Itg2!(f;>o*UgihQ-@HkQ0gy69z1dcWm ZH&$7u^KwZegyIH+FK%$H`={_9@(+P07dZd` diff --git a/Spoton mIRC Addon/img/previoustrack.ico b/Spoton mIRC Addon/img/previoustrack.ico deleted file mode 100644 index cdb47f1006795b91a2b4d1850c2d57016ca7a6c5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1150 zcmb7^$xqa96vu1gAHd182S_{-K$c-uBQD^=IxyUffk;9^a5;KVP{0L6zz8CY4va=Y zMLNQ7a+K!lKLm+!h&$`nr2$tI5onJ-ZwF9BNd4zK92){yqq7KK_z7Xs1F^cWIcY-w8R%^i1F7%O1m9cpt9(M%7>32Hw~Kp|T62Mn#PBPKYstayln? zB3RZAjxz4T7S(m)hS__rS>=ja!4=&BcfJ+Avn}wRxeaf@Egerm6Fk&=PB#)wa1-pw Mn|gN7pTd90e<6AxZ2$lO diff --git a/Spoton mIRC Addon/img/rewindtrack.ico b/Spoton mIRC Addon/img/rewindtrack.ico deleted file mode 100644 index 2a4a83a7978129639a8598d56da773549d6d0ddf..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1150 zcmb7^$xqZ^7{+VjAK=Ne2S_}jBFZ)+5>R9bOJJPAlSlsrnvW-}>RhGm0UgLdf9 z5X9^;gtI3g9eNJwAmat318LZrd90WH%$XG^vz|3zhYml2lsgVNe-di`G}OFT&~j&p zS!hSour+zC$7bY$Nl1C);Ijh=_KhoI%R>Lw1d0qi707(G1LEbBMX;VV-&i#s3>x>rcd7RJ-S3mdr!#TtTE~g)(E{ zbNUcE;)m=WfnGcbv-lNaCG?KA?}#o5kbX*+cEyBsUQ0&K`9M@&$|V_;5y`!{V*zr z5Wl<#>zj+A&V$yFo=zQXbh zr~ES`u%0X<@$v`MnjQ$Hod^}T()Ztn;ps!nH;A||fQ0WM5?)d-(@ki9>aiK)bRV?3 zyAaDdz?U>buDuD}OJ`{8L9DSijh|*|{THln`0iuF+YP0@3t~kZf~8mNNNqb*&rN9F zTSOPM)1-_B^3tdcH?WCZ--$?V2ZV|iJ9y%vU#x1frJ5E 0) { did -e $dname 6 } - if (%sptnsaythis) { - spssh %sptnsaythis - did -ra $dname 2 %sptnsaythis | did -e $dname 5 - } - } - if ($devent == sclick) { - if ($did == 5) { - if (!$read(says.txt, nw, * $+ $did(2))) { - set %sptnsaythis $did(2) - var %line = $iif($lines(says.txt) == 0,1,$calc($v1 +1)) - write says.txt %line $+ $chr(144) $+ $did(2) - } - else { noop $input(The Say is already in the list!,woud,Spoton) | set %sptnsaythis $did(2) } - did -e $dname 6 - } - if ($did == 6) { $iif($window(@saylist),window -c @saylist,spotwin) } - if ($did == 3) { did -r $dname 2 | spssh } - if ($did == 7) { set %sptnmedia 0 | sptntb 0 } - if ($did == 8) { set %sptnmedia 1 | sptntb 1 } - if ($did == 9) { set %sptnmedia 2 | sptntb 2 } - } - if ($devent == edit) { - if ($did == 2) { - if ($len($did(2)) > 0) { spssh $did(2) } - if ($len($did(2)) >= 5) { did -e $dname 5 } - elseif ($len($did(2)) < 5) { did -b $dname 5 } - elseif ($len($did(2)) == 0) { spssh } - did -f $dname 2 - } - } - if ($devent == close) { window -c @spss | window -c @saylist } -} - -;Generate Image into the tool -alias -l spssh { - if ($1- != $null) { - clear @spss - var %ttext = $replace($1-,[song],Artist - Title,[artist],Artist,[title],Title) - var %tfont = $window(status window).font, %tsize = $window(status window).fontsize - window -dBk0pw0h +dL @spss -1 -1 360 $calc($height(%ttext,%tfont,%tsize,0,1) + 3) - drawfill -r @spss $rgb(face) $rgb(face) 0 0 - drawrect -rf @spss $rgb(face) 1 $calc($width(%ttext,%tfont,%tsize,0,1) + 3) 0 360 $calc($height(%ttext,%tfont,%tsize,0,1) + 3) - drawtext -pb @spss $color(text) $color(background) %tfont %tsize 2 1 %ttext - } - else { - clear @spss - window -dBk0pw0h +dL @spss -1 -1 360 15 - drawrect -rf @spss $rgb(face) 1 0 0 360 15 - } - drawsave @spss spssh.bmp - $iif($dialog(sps),did -g sps 3 spssh.bmp) - window -c @spss -} - -;This will show which features you can use in Spoton -alias -l spfrmx { - return $+([song],$str($chr(9),2),Shows the Artist - Title,$crlf,[artist],$str($chr(9),2),Shows the Artist,$crlf,[title],$str($chr(9),2),Shows the Title) -} - -;Run Spotify if it's not running -alias -l sptnrun { - - ;If spotify is downloaded from website. - var %path1 = $+($sysdir(profile),AppData\Roaming\Spotify\Spotify.exe) - - ;If spotify is downloaded from Windows apps. - var %path2 = $+($sysdir(profile),AppData\Local\Microsoft\WindowsApps\Spotify.exe) - - if ($dll(spoton.dll,status,) == 0) { - if ($isfile(%path1)) { - /run %path1 - } - elseif ($isfile(%path2)) { - /run %path2 - } - } - else { - echo 04 -ag * [Spoton] - Spotify is already running. - } -} -;Generate says into the window -alias -l spotwin { - if ($lines(says.txt) > 0) { - clear @saylist - var %x = $iif($dialog(sps),$calc($dialog(sps).x + $dialog(sps).w),-1) - var %y = $iif($dialog(sps),$dialog(sps).y,-1) - window -ak0ld $+ $iif($dialog(sps) == $null,C) +L @saylist %x %y 200 200 - var %o = 1 - while (%o <= $lines(says.txt)) { - aline @saylist $+($chr(2),%o,.,$chr(2),$chr(160),$gettok($read(says.txt,n,%o),2,144)) - inc %o - } - } - else { set %sptnsaythis Spotify » [song] } -} - -;Select and Remove says. -menu @saylist { - dclick:{ - if ($sline(@saylist,1)) { - if ($dialog(sps)) { - did -ra sps 2 $gettok($sline(@saylist,1),2,160) - spssh $gettok($sline(@saylist,1),2,160) - did -e sps 5 - } - set %sptnsaythis $gettok($sline(@saylist,1),2,160) - } - } - Remove:write -dl $+ $sline(@saylists,1).ln says.txt | spotwin -} - -;## 0ther ## - - -;Replace value with data from [song], [artist], [title] -alias -l spfrm { - return $spc($replace($1-,[song],$dll($spfind,song,),[artist],$dll($spfind,artist,),[title],$dll($spfind,title,))) -} - -;Check if channel have +c (Colors enabled) -alias -l spc { - if ($left($active,1) == $chr(35)) { - if (c !isincs $chan(#).mode) { return $1- } - else { return $strip($1-) } - } - else { return $1- } -} - -;Checks if spoton.dll exists and return the path -alias -l spfind { - if ($exists($+($nofile($script),spoton.dll))) { - return $+($nofile($script),spoton.dll) - } - else { echo 04 -ag * [Spoton] - Can't find spoton.dll. | halt } -} - -;If Spoton is playing a song (Status Code: 3), write out to the channel/pm. -alias snp { - if ($dll($spfind,status,0) == 3) { - if ($server != $null) { - if ($left($active,1) == $chr(35) || $active != Status Window) { - say $spfrm(%sptnsaythis) - } - } - else { - echo 04 -ag * [Spoton] - You are not connected to an IRC-Server. - } - } - else { echo 02 -ag * [Spoton] - Spotify is $replace($dll($spfind,status,0),0,Not running,1,Paused,2,Playing Advertisement) $+ . | halt } -} - -;Reset the toolbar buttons -alias -l sptnresets { - if ($toolbar(sepa1)) toolbar -d sepa1 - if ($toolbar(sptn-previous)) toolbar -d sptn-previous - if ($toolbar(sptn-rewind)) toolbar -d sptn-rewind - if ($toolbar(sptn-play)) toolbar -d sptn-play - if ($toolbar(sptn-forward)) toolbar -d sptn-forward - if ($toolbar(sptn-next)) toolbar -d sptn-next -} - -;Generate toolbar buttons -alias -l sptntb { - if ($isnum($1)) { - var %a %sptncntrl - var %i 1 - var %b %sptncntrl + 7 - if ($1 == 0) { - sptnresets - } - else { - while (%a <= %b) { - if (%i == 1) { - sptnresets - if ($toolbar(%a).name == $null) toolbar -izs %a sepa1 - } - if ($1 == 2) { - if (%i == 2) { - if ($toolbar(%a).name == $null) toolbar -iz1 %a sptn-previous "Previous track" img\previoustrack.ico "/dll spoton.dll control previous" - } - if (%i == 3) { - if ($toolbar(%a).name == sptn-rewind) toolbar -d sptn-rewind - if ($toolbar(%a).name == $null) toolbar -iz1 %a sptn-play "Play/Pause track" img\playpausetrack.ico "/dll spoton.dll control playpause" - } - if (%i == 4) { - if ($toolbar(%a).name == $null) toolbar -iz1 %a sptn-next "Next track" img\nexttrack.ico "/dll spoton.dll control next" - } - if (%i == 5) { - if ($toolbar(%a).name == sptn-forward) toolbar -d sptn-forward - - } - if (%i == 6) { - if ($toolbar(%a).name == sptn-next) toolbar -d %a - } - } - if ($1 == 1) { - if (%i == 2) { - if ($toolbar(%a).name == $null) toolbar -iz1 %a sptn-previous "Previous track" img\previoustrack.ico "/dll spoton.dll control previous" - } - if (%i == 3) { - if ($toolbar(%a).name == sptn-play) toolbar -d %a - if ($toolbar(%a).name == $null) toolbar -iz1 %a sptn-rewind "Rewind track" img\rewindtrack.ico "/dll spoton.dll control rewind" - } - if (%i == 4) { - if ($toolbar(%a).name == sptn-next) toolbar -d sptn-next - toolbar -iz1 %a sptn-play "Play/Pause track" img\playpausetrack.ico "/dll spoton.dll control playpause" - } - if (%i == 5) { - if ($toolbar(%a).name == $null) toolbar -iz1 %a sptn-forward "Forward track" img\forwardtrack.ico "/dll spoton.dll control forward" - } - if (%i == 6) { - if ($toolbar(%a).name == $null) toolbar -iz1 %a sptn-next "Next track" img\nexttrack.ico "/dll spoton.dll control next" - } - } - - inc %a - inc %i - } - } - } -} - -;Setup everything that is needed when loaded. -on *:load:{ - set %sptnsaythis Spotify » [song] - spssh - set %sptncntrl $toolbar(0) + 1 - set %sptnbeta 0.0.5 - set %sptnmedia 0 - echo 02 -ag * [Spoton] - Spoton is loaded! -} -;Automatic add toolbars if enabled -on *:start:{ - if (%sptnmedia > 0) sptntb %sptnmedia -} -on *:unload:{ - if ($dialog(sps)) { dialog -x sps } - if ($isfile(spssh.bmp)) { .remove spssh.bmp } - if ($window(@saylists)) { window -c $v1 } - if ($window(@spss)) { window -c $v1 } - if ($isfile(says.txt)) { .remove says.txt } - unset %sptnsaythis - unset %sptnbeta - unset %sptncntrl - unset %sptnmedia - sptnresets - echo 02 -ag * [Spoton] - Spoton is now unloaded! -}