aMSN Forums
August 21, 2018, 07:31:01 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: New forum for aMSN !!
 
  Home Help Search Login Register  
  Show Posts
Pages: [1] 2
1  The Community / Plugins / Re: About the translate plugin on: December 28, 2011, 02:00:25 am
I'll look into it. I have time.
2  The Community / Plugins / About the translate plugin on: December 26, 2011, 06:43:40 pm
Hi,

I wrote the translate plugin a few years ago; recently google have discontinued V1 of their translate API, and V2 is a pay only service, so this plugin is now obsolete.

Just so you guys know to remove it from your next release.

Cheers,

Greg

http://code.google.com/apis/language/translate/overview.html

PS - If there is a decent free API, I could modify the code to use that, if required.
3  The Community / Plugins / google translator plugin for amsn 0.97 on: September 30, 2009, 11:05:59 pm
i have now replaced the donate button with a link to the plugin website: http://g.imagination.eu.org/tcl/translate

meant to do it ages ago but i really haven't had time lately.

cheerio,

g
4  The Community / Plugins / new_conversation question on: July 24, 2009, 10:37:16 am
hi, this proc is called from a new_conversation event:

Code:

 ::plugins::RegisterEvent "myplugin" new_conversation populate_chatwindow


any ideas?
5  The Community / Plugins / new_conversation question on: July 24, 2009, 06:58:18 am
hi,

found some time to continue with my plugin lately but i have a problem whereby if i open a chat to another user, my code works, but if the other user opens the window to me, it doesn't.

it seems that the $chatid variable is 0 when the other user initiates the chat to me, so i can't get the right window number using [::ChatWindow::For $chatid]

here's what i have:
Code:

        proc populate_chatwindow {event evpar} {

           upvar 2 $evpar args

                set chatid $args(chatid)
                set window [::ChatWindow::For $chatid]

                set placement $window.top.padding
                pack [create_ui $window $placement $chatid] -fill x
        }



cheers
6  The Community / Plugins / music::YouTube (a plugin for a plugin) on: June 04, 2009, 03:00:48 am
hi,

i've made a plugin that uses the pre-existing Music plugin to read which track you are playing and use that information to search youtube for a video matching your song.

i am using gprs at the moment and i wanted a way of quickly sharing music with my friends.

for some reason my mobile provider isn't letting me access postimage, but there is a screenshot, along with the plugin itself here: http://g.imagination.eu.org/tcl/youtube_plugin

i can't seem to get the button to line up exactly with the rest of them on the left ... i noticed the winks plugin button behaves the same way; any ideas?

cheers,

g
7  The Community / Plugins / integrating buttons/functions with chat windows ? on: May 19, 2009, 10:07:21 pm
hi again,

i don't know whether this should be a new thread or not but:

you may have noticed in using the plugin that the ui isn't drawn when the remote person starts the conversation; also (not as important), the text in the notification popups (i don't know the term you use for them) is in the original language if translate incoming is enabled.

little things like this would make 0.4 i guess

cheers,

g
8  The Community / Plugins / google translator plugin for amsn 0.97 on: May 19, 2009, 09:36:26 pm
Smiley

i have been messing around with eggdrop tcl scripts for a while; i had the need to translate via msn so i decided to write this for my personal use originally, it worked good so i thought other people might find it useful.

appreciate the feedback, thankyou Smiley

g

--(an out of work art dropout needs all the shameless self promotion he can get)
9  The Community / Plugins / integrating buttons/functions with chat windows ? on: May 19, 2009, 03:24:41 am
done
10  The Community / Plugins / integrating buttons/functions with chat windows ? on: May 19, 2009, 02:32:15 am
oh!

thanks Smiley

i have now uploaded the plugin to my webspace (with my bodged workaround for the problem). check my edit above if you would like to try it.

i will change it later and reupload using your suggestion

thanks,

g
11  The Community / Plugins / integrating buttons/functions with chat windows ? on: May 19, 2009, 12:36:36 am
hi,

i tried using
Code:

if {$chatid != [::config::getKey login] }  {mycode}


instead of the $chatid.lastmsg thing above ... it behaves the same as if i remove the clause altogether.

if i set up a plugins_log myplugin "$chatid - $message" to view what is actually happening, my messages are definitely interpreted as being sent by the other person!

or have i misunderstood something?
12  The Community / Plugins / integrating buttons/functions with chat windows ? on: May 18, 2009, 07:06:00 pm
hi,

thanks for your help, it works now!

i used new_conversation and [::ChatWindow::For $chatid]

a couple of screenshots:


(showing original text)


(hiding original text)

i will upload it to my webspace and add a link on my original thread once i have commented the code and tidied up any loose ends...
Quote


i found something interesting when writing the part to translate incoming messages (using chat_msg_receive).

i am using chat_msg_send to read the msg, send it to google, and replace it with the translation (and some formatting). this adds a slight delay in the translated message appearing in the window.

i found that amsn interprets these delayed messages as having originated from the person with whom i am chatting, not myself. this caused the script to interpret my text as having came from the other person, and activated my chat_msg_receive script, which caused a double translation to appear on my window (though the outgoing text to their window was fine).

i had to create a $chatid.lastmsg element in the config array and use
Code:
if {$msg!=$::myscript::config($chatid.lastmsg)} {code}
to get around this.

anyway, thanks again for your help!

g
13  The Community / Plugins / integrating buttons/functions with chat windows ? on: May 17, 2009, 12:26:47 am
hi,

using [::ChatWindow::Name $window] is just returning 0 ... i guess because the conversation hasn't started at the time this is called.

i had a look at new_conversation, but i can't see a way of sending the chatid returned from that to my new_chatwindow proc ...

the checkbox is in the chatwindow ... not sure if that is what you meant so here is a screenshot:




14  The Community / Plugins / integrating buttons/functions with chat windows ? on: May 16, 2009, 08:09:26 pm
hi,

i've managed to integrate a couple of comboboxes and a checkbox with the top of chat windows.

however, i need the checkbox to work on a per-chatid basis.

the buttons are added using the new_chatwindow event which doesn't give me any info about who the window was opened to ...

is there a function i can use to return the chatid of the person to whom i have opened the window? or some other way of achieving this?

thanks,

g
15  The Community / Plugins / integrating buttons/functions with chat windows ? on: May 15, 2009, 09:18:16 pm
thanks for the swift response Smiley

i will look at the plugins you mentioned
Pages: [1] 2
Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!