Description: A konversation script in perl for sending the music file currently played with Amarok
Info: copy the script (there is a french and an english version provided) in your konversation script directory (ex: "/usr/share/apps/konversation/scripts" on kubuntu). Check if the script is executable. In Konversation, go to the "Command aliases" panel and create a new alias for this script
usage: /aliastothescript nick
If you want to disable the message ("/me is sending XXX ... to XXX"), change the line "my $showmessage=1;" to "my $showmessage=0;"
Please note that we changed the DCOP interface in Konversation 1.0, citing the changelog:
'The "Konversation" and "KonvDCOPIdentity" DCOP objects have been renamed to "irc" and "identity", respectively. Several bugs in the DCOP API have been fixed, and deprecated interfaces removed.'
You probably want to update your script to function with 1.0 and beyond.
Meanwhile, users can simply replace all occurences of "Konversation" (note the capital K) with "irc".
hmm, I don't understand why it doesn't work...
-does the default konversation /media script work ?
-when you type "dcop amarok player title" in a console while amarok is playing something, does it show the title of your music file ?
are there other people for whom the script doesn't work ?
here is the media script (but I think it is already provided with the default install of konv)
http://danakil.free.fr/linux/media
and a modified version of my script whick doesn't check if amarok is playing or not (it's just a test)
http://danakil.free.fr/linux/dccamarok_usnocheck
you know that you must type "/dccmp3 nick" INSIDE of konversation, isn't it ? when you're connected in a channel...
to use the media script: copy it in your konv script directory, then in konversation, create an alias then in konv type /youraliastothescript
i can't do anything more for you I think, i'm just a begginer at this and I even don't know if it's work for the others people...
Ratings & Comments
5 Comments
Please note that we changed the DCOP interface in Konversation 1.0, citing the changelog: 'The "Konversation" and "KonvDCOPIdentity" DCOP objects have been renamed to "irc" and "identity", respectively. Several bugs in the DCOP API have been fixed, and deprecated interfaces removed.' You probably want to update your script to function with 1.0 and beyond. Meanwhile, users can simply replace all occurences of "Konversation" (note the capital K) with "irc".
Doesn't seem to know amaroK is playing. [DCOP] Error: Nothing is playing in Amarok
hmm, I don't understand why it doesn't work... -does the default konversation /media script work ? -when you type "dcop amarok player title" in a console while amarok is playing something, does it show the title of your music file ? are there other people for whom the script doesn't work ?
I never used the media script. How do I test that? dcop amarok player title - works it returns the proper title.
here is the media script (but I think it is already provided with the default install of konv) http://danakil.free.fr/linux/media and a modified version of my script whick doesn't check if amarok is playing or not (it's just a test) http://danakil.free.fr/linux/dccamarok_usnocheck you know that you must type "/dccmp3 nick" INSIDE of konversation, isn't it ? when you're connected in a channel... to use the media script: copy it in your konv script directory, then in konversation, create an alias then in konv type /youraliastothescript i can't do anything more for you I think, i'm just a begginer at this and I even don't know if it's work for the others people...