- ; Charset "CP949" (UHC)
- ; TJetAudio CurrentlySong Show for mIRC
- ; JetAudio receive information from the current song output.
- ; Copyright (C) 2006-2007 woni | HNO3
- ; Translation and further customization by CvP, Administrator, COWON America Forums.
- ;
- ; This plugin is free software; you can redistribute it and/or
- ; modify it under the terms of the GNU General Public License
- ; as published by the Free Software Foundation; either version 2
- ; of the License, or (at your option) any later version.
- ;
- ; This plugin is distributed in the hope that it will be useful,
- ; but WITHOUT ANY WARRANTY; without even the implied warranty of
- ' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- ; GNU General Public License for more details.
- ;
- ; You should have received a copy of the GNU General Public License
- ; along with this plugin; if not, write to the Free Software
- ; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- on *:load {
- set %TJetAudio 1
- set %TJetAudio.CurrentArtist
- set %TJetAudio.CurrentTitle
- set %TJetAudio.Delay 240
- set %TJetAudio.Install 0
- set %TJetAudio.Version 0.4.2.2?
- TJetAudioHelp
- }
- on *:connect {
- }
- alias ja {
- if (!$1) TJetAudioGetTitle
- elseif ($1 == !TJAInstall) {
- if (%TJetAudio.Install == 0) {
- echo -a !TJAInstall - 07JetAudio automatically display the currently playing song On
- }
- TJetAudioInstall
- }
- elseif ($1 == !TJAInstallFixed) {
- if (%TJetAudio.Install == 0) {
- echo -a !TJAInstallFixed - 07JetAudio automatically display the currently playing song On [ $+ $active channels]
- }
- TJetAudioInstallFixed
- }
- elseif ($1 == !TJAInstallAll) {
- if (%TJetAudio.Install == 0) {
- echo -a !TJAInstallAll - 07JetAudio automatically display the currently playing song On [All Channel]
- }
- TJetAudioInstallAll
- }
- elseif ($1 == !TJAUninstall) {
- if (%TJetAudio.Install != 0) {
- echo -a !TJAUninstall - 07JetAudio automatically display the song currently playing Off
- }
- TJetAudioUninstall
- }
- elseif ($1 == !TJAReinstall) {
- if (%TJetAudio.Install != 0) {
- echo -a !TJAReinstall - 07JetAudio automatically display the currently playing song On [re]
- }
- TJetAudioReinstall
- }
- elseif ($1 == !TJAReinstallFixed) {
- if (%TJetAudio.Install != 0) {
- echo -a !TJAReinstallFixed - 07JetAudio automatically display the currently playing song On [ $+ $active channel re]
- }
- TJetAudioReinstallFixed
- }
- elseif ($1 == !TJAReinstallAll) {
- if (%TJetAudio.Install != 0) {
- echo -a !TJAReinstallAll - 07JetAudio automatically display the currently playing song On [All Channel re]
- }
- TJetAudioReinstallAll
- }
- elseif ($1 == !TJAUnloadDll) {
- echo -a !TJAUnloadDll
- dll -u JetAudio_GetSong.dll
- }
- elseif ($1 == !TJADelay) {
- if ($2 == $null) || ($2 == 0) {
- echo -a !TJADelay - 07JetAudio automatically display the song currently playing, the delay (default 240 seconds)
- set %TJetAudio.Delay 240
- TJetAudioSetDelay
- }
- else {
- echo -a !TJADelay $2 - 07JetAudio automatically display the song currently playing, the delay
- set %TJetAudio.Delay $2
- TJetAudioSetDelay
- }
- }
- elseif ($1 == !TJAHelp) {
- echo -a !TJAHelp
- TJetAudioHelp
- }
- }
- alias -l TJetAudioHelp {
- echo -a 12TJetAudio CurrentlySong Show for mIRC %TJetAudio.Version
- echo -a ¡¡¡¡04!TJAInstall: 12JetAudio display the currently playing song to turn on automatically.
- echo -a ¡¡¡¡04!TJAInstallFixed: 12JetAudio automatically display the currently playing song appears only to install the channel on.
- echo -a ¡¡¡¡04!TJAInstallAll: 12JetAudio automatically display the current playing song and turn it to appear on all channels.
- echo -a ¡¡¡¡04!TJAUninstall: 12JetAudio automatically display the currently playing song off.
- echo -a ¡¡¡¡04!TJAReinstall: 12JetAudio the currently playing song to turn off auto-show feature.
- echo -a ¡¡¡¡04!TJAReinstallFixed: 12JetAudio automatically display the current song to play only to install the channel to show off and on.
- echo -a ¡¡¡¡04!TJAReinstallAll: 12JetAudio automatically display the currently playing song to show off the appetizer to the channel on.
- echo -a ¡¡¡¡04!TJAUnloadDll: 12TJetAudio CurrentlySong Show for mIRC to unload the plug-in DLL.
- echo -a ¡¡¡¡04!TJADelay [time]: 12JetAudio automatically display the currently playing song to set the delay. If you do not enter the time value of the default (240 seconds) is set.
- echo -a ¡¡¡¡04!TJAHelp: 12TJetAudio CurrentlySong Show for mIRC's help output.
- echo -a ¡¡¡¡04!TJACurrent, !TC, !tc, !Á¬°î, ?c, ?°î, @c: 12JetAudio display the currently playing song manually.
- }
- alias -l TJetAudioOpenStatus {
- var %result $dll(" $+ $scriptdir $+ JetAudio_GetSong.dll $+ ", JetAudio_IsRunning_mIRC, $null)
- if (%result == true) %result = 1
- else %result = 0
- return %result
- }
- alias -l TJetAudioGetTitleReturn {
- var %TJetAudioStatus $TJetAudioOpenStatus(OpenStatus)
- if (%TJetAudioStatus) {
- var %TJetAudioTitle $dll(" $+ $scriptdir $+ JetAudio_GetSong.dll $+ ", JetAudio_GetTitle_mIRC, $null)
- return %TJetAudioTitle
- }
- return $null
- }
- alias -l TJetAudioGetArtistReturn {
- var %TJetAudioStatus $TJetAudioOpenStatus(OpenStatus)
- if (%TJetAudioStatus) {
- var %TJetAudioArtist $dll(" $+ $scriptdir $+ JetAudio_GetSong.dll $+ ", JetAudio_GetArtist_mIRC, $null)
- return %TJetAudioArtist
- }
- return $null
- }
- alias -l TJetAudioGetArtistTitleReturn {
- var %TJetAudioStatus $TJetAudioOpenStatus(OpenStatus)
- if (%TJetAudioStatus != 0) {
- var %TJetAudioTitle $dll(" $+ $scriptdir $+ JetAudio_GetSong.dll $+ ", JetAudio_GetTitle_mIRC, $null)
- var %TJetAudioArtist $dll(" $+ $scriptdir $+ JetAudio_GetSong.dll $+ ", JetAudio_GetArtist_mIRC, $null)
- var %TJetAudioRunningTime $dll(" $+ $scriptdir $+ JetAudio_GetSong.dll $+ ", JetAudio_GetRunningTime_mIRC, $null)
- var %TJetAudioPlayStatus $dll(" $+ $scriptdir $+ JetAudio_GetSong.dll $+ ", JetAudio_GetPlayStatus_mIRC, $null)
- if (%TJetAudioArtist != $null) {
- return %TJetAudioTemp 4[ 7jetAudio 4] 4[14 $dll(" $+ $scriptdir $+ JetAudio_GetSong.dll $+ ", JetAudio_GetTrackNumber_mIRC, $null) 4]12 %TJetAudioPlayStatus $+ :3 %TJetAudioArtist 4-9 %TJetAudioTitle 4[14 %TJetAudioRunningTime 4]
- }
- return %TJetAudioTemp 4[ 7jetAudio 4] 4[14 $dll(" $+ $scriptdir $+ JetAudio_GetSong.dll $+ ", JetAudio_GetTrackNumber_mIRC, $null) 4]12 %TJetAudioPlayStatus $+ :9 %TJetAudioTitle 4[14 %TJetAudioRunningTime 4]
- }
- return $null
- }
- alias -l TJetAudioGetTitle {
- var %TJetAudioStatus $TJetAudioOpenStatus(OpenStatus)
- if (%TJetAudioStatus != 0) {
- var %TJetAudioTitle $dll(" $+ $scriptdir $+ JetAudio_GetSong.dll $+ ", JetAudio_GetTitle_mIRC, $null)
- var %TJetAudioArtist $dll(" $+ $scriptdir $+ JetAudio_GetSong.dll $+ ", JetAudio_GetArtist_mIRC, $null)
- if ((%TJetAudioTitle == %TJetAudio.CurrentTitle) && (%TJetAudioArtist == %TJetAudio.CurrentArtist) && (%TJetAudio.Install != 0)) {
- halt
- }
- set %TJetAudio.CurrentTitle %TJetAudioTitle
- set %TJetAudio.CurrentArtist %TJetAudioArtist
- var %TJetAudioArtistTitle $TJetAudioGetArtistTitleReturn()
- if (%TJetAudioArtistTitle != $null) {
- say %TJetAudioArtistTitle
- }
- }
- }
- alias -l TJetAudioGetTitleCurrent {
- var %TJetAudioStatus $TJetAudioOpenStatus(OpenStatus)
- if (%TJetAudioStatus != 0) {
- var %TJetAudioTitle $dll(" $+ $scriptdir $+ JetAudio_GetSong.dll $+ ", JetAudio_GetTitle_mIRC, $null)
- var %TJetAudioArtist $dll(" $+ $scriptdir $+ JetAudio_GetSong.dll $+ ", JetAudio_GetArtist_mIRC, $null)
- if ((%TJetAudioTitle == %TJetAudio.CurrentTitle) && (%TJetAudioArtist == %TJetAudio.CurrentArtist) && (%TJetAudio.Install != 0)) {
- halt
- }
- set %TJetAudio.CurrentTitle %TJetAudioTitle
- set %TJetAudio.CurrentArtist %TJetAudioArtist
- var %TJetAudioArtistTitle $TJetAudioGetArtistTitleReturn()
- if (%TJetAudioArtistTitle != $null) {
- msg $active %TJetAudioArtistTitle
- }
- }
- }
- alias -l TJetAudioGetTitleAll {
- var %TJetAudioStatus $TJetAudioOpenStatus(OpenStatus)
- if (%TJetAudioStatus) {
- var %TJetAudioTitle $dll(" $+ $scriptdir $+ JetAudio_GetSong.dll $+ ", JetAudio_GetTitle_mIRC, $null)
- var %TJetAudioArtist $dll(" $+ $scriptdir $+ JetAudio_GetSong.dll $+ ", JetAudio_GetArtist_mIRC, $null)
- if ((%TJetAudioTitle == %TJetAudio.CurrentTitle) && (%TJetAudioArtist == %TJetAudio.CurrentArtist) && (%TJetAudio.Install != 0)) {
- halt
- }
- set %TJetAudio.CurrentTitle %TJetAudioTitle
- set %TJetAudio.CurrentArtist %TJetAudioArtist
- var %TJetAudioArtistTitle $TJetAudioGetArtistTitleReturn()
- if (%TJetAudioArtistTitle != $null) {
- ame %TJetAudioArtistTitle
- }
- }
- }
- alias -l TJetAudioSongClear {
- set %TJetAudio.CurrentArtist
- set %TJetAudio.CurrentTitle
- }
- alias -l TJetAudioInstall {
- if (%TJetAudio.Install != 0) {
- echo $active 06 JetAudio automatically displays the song currently playing feature is On.
- halt
- }
- TJetAudioSongClear
- TJetAudioGetTitle
- set %TJetAudio.Install 1
- timertja 0 %TJetAudio.Delay TJetAudioGetTitleCurrent
- }
- alias -l TJetAudioInstallFixed {
- if (%TJetAudio.Install != 0) {
- echo $active 06 JetAudio automatically displays the song currently playing feature is On.
- halt
- }
- TJetAudioSongClear
- TJetAudioGetTitle
- set %TJetAudio.Install 3
- timertja 0 %TJetAudio.Delay TJetAudioGetTitle
- }
- alias -l TJetAudioInstallAll {
- if (%TJetAudio.Install != 0) {
- echo $active 06 JetAudio automatically displays the song currently playing feature is On.
- halt
- }
- TJetAudioSongClear
- TJetAudioGetTitleAll
- set %TJetAudio.Install 2
- timertja 0 %TJetAudio.Delay TJetAudioGetTitleAll
- }
- alias -l TJetAudioUninstall {
- if (%TJetAudio.Install == 0) {
- echo $active 06JetAudio will not show the currently playing song (no automatic display).
- halt
- }
- set %TJetAudio.Install 0
- timertja off
- }
- alias -l TJetAudioReinstall {
- if (%TJetAudio.Install == 0) {
- TJetAudioUninstall
- halt
- }
- TJetAudioUninstall
- TJetAudioInstall
- }
- alias -l TJetAudioReinstallFixed {
- if (%TJetAudio.Install == 0) {
- TJetAudioUninstall
- halt
- }
- TJetAudioUninstall
- TJetAudioInstallFixed
- }
- alias -l TJetAudioReinstallAll {
- if (%TJetAudio.Install == 0) {
- TJetAudioUninstall
- halt
- }
- TJetAudioUninstall
- TJetAudioInstallAll
- }
- alias -l TJetAudioSetDelay {
- if (%TJetAudio.Install == 1) {
- TJetAudioReinstall
- }
- elseif (%TJetAudio.Install == 2) {
- TJetAudioReinstallAll
- }
- elseif (%TJetAudio.Install == 3) {
- TJetAudioReinstallFixed
- }
- }
- ctcp 1:TJetAudio: {
- if ($2 == receive) {
- notice $nick 02 is a feature currently under development.
- }
- elseif ($2 == artist) {
- var %TJetAudioArtist = $TJetAudioGetArtistReturn()
- if (%TJetAudioArtist == $null) {
- notice $nick 02 Requested field is unknown.
- }
- else {
- notice $nick (TJetAudio) 04Current Artist02 %TJetAudioArtist
- }
- }
- elseif ($2 == title) {
- var %TJetAudioTitle = $TJetAudioGetTitleReturn()
- if (%TJetAudioTitle == $null) {
- notice $nick 02 Requested field is unknown.
- }
- else {
- notice $nick (TJetAudio) 04Current Title02 %TJetAudioTitle
- }
- }
- elseif ($2 == info) || ($2 == songinfo) {
- var %TJetAudioArtistTitle $TJetAudioGetArtistTitleReturn()
- if (%TJetAudioArtistTitle == $null) {
- notice $nick 02 Requested field is unknown.
- }
- else {
- notice $nick $TJetAudioGetArtistTitleReturn()
- }
- }
- elseif ($2 == help) {
- notice $nick 01/ctcp12 $me 04TJetAudio receive: 02 is currently playing file.
- notice $nick 01/ctcp12 $me 04TJetAudio artist: 02 currently playing song's artist is displayed.
- notice $nick 01/ctcp12 $me 04TJetAudio title: 02 currently playing song's title is displayed.
- notice $nick 01/ctcp12 $me 04TJetAudio info, 01/ctcp12 $me 04TJetAudio songinfo: 02 currently playing song's artist and title are displayed.
- notice $nick 01/ctcp12 $me 04TJetAudio help: 02 tips to display.
- }
- elseif ($2 == $null) {
- notice $nick 04 Please enter the command notice
- notice $nick 01/ctcp12 $me 04TJetAudio help2 can be viewed as a help.
- }
- else {
- notice $nick 04 $+ $2 $+ is a free command.
- notice $nick 01/ctcp12 $me 04TJetAudio help2 can be viewed as a help.
- }
- }
