aMSN Forums

The Community => Plugins => Topic started by: Sethnakht on June 11, 2007, 10:15:56 pm



Title: AvatarAutoChange plugin 2.0 beta
Post by: Sethnakht on June 11, 2007, 10:15:56 pm
Hello,

I've made a new plugin : AvatarAutoChange

http://www.savefile.com/files/1322192

The goal if to change to display image (Avatar) when the status change (manually or automatically) to set a more accurate DP for your contacts .

(It's functional, but could be, of course, improved. first of all the config window.)

I would know if it's possible to add new Post Events:
 - MyDisplayPictureChange : to notify the modification of the DP (in gui.tcl, proc pictureBrowser)
 - BeforeChangeMyState : to notify plugins of the imminent state change (to let plugin save old state, change state message, ...)  (in automsg.tcl before ::MSN::changeStatus $new_state, and in gui.tcl before ::MSN::changeStatus XXX (3 times))

Thanks for your suggestions !  :D


Title: Re: DisplayPictureAutoChange plugin (new)
Post by: square87 on June 12, 2007, 07:21:03 am
Hello Sethnakht :)
It's nice and useful for someone. Thanks.

About BeforeChangeMyState. Save initial status in a var (var1), then when ChangeMyState Event is called you save the new status in a var2. Then... when the user will change again his/her status:
set var1 $var2
set var2 NewStatus
So var1 will always have the penultimate status.

About MyDisplayPictureChange: what do you what to do with this Event? Do you save the last avatar used? If yes you can write a solution like for BeforeChangeMyState. When DP is changed ContactListColourBarDrawn Event is called (in general it's called when we change something in topCL)

TODO/Suggestion:
* Auto-resize avatars (it's important, see how aMSN works about that)
* You can add tk_getOpenFile command ( http://www.tcl.tk/man/tcl8.4/TkCmd/getOpenFile.htm ) to open a search window, then select a file and path of file will be returned.

Thanks, it was in my TODO list :)
Sorry for my English.
Are you Italian? :P

Have a nice day.


Title: AvatarAutoChange plugin 2.0 beta
Post by: Phil on June 12, 2007, 10:38:48 pm
He is french....


Title: AvatarAutoChange plugin 2.0 beta
Post by: Sethnakht on June 12, 2007, 10:43:43 pm
Hi square87,
Thanks for your reply,

The event ContactListColourBarDrawn is interesting but, after some tests, it's not called after a manual change of the display picture :(

The BeforeChangeMyState would be usefull to change the DP before sending the status to MSN server/contact, currently, i'm sending a second time the status+display picture (using ::MSN::WriteSB) while it's done just before my the ::MSN::changeStatus

Thanks for your todo list, i'm getting some problem to make a config windows with button but I should be able to do it...  :wink:

(not Italian, I'm French)


Title: AvatarAutoChange plugin 2.0 beta
Post by: square87 on June 13, 2007, 07:58:17 am
Quote from: "Sethnakht"
Hi square87,
Thanks for your reply,

Hi Sethnakht
Quote
The event ContactListColourBarDrawn is interesting but, after some tests, it's not called after a manual change of the display picture :(

right :-\

Quote
The BeforeChangeMyState would be usefull to change the DP before sending the status to MSN server/contact, currently, i'm sending a second time the status+display picture (using ::MSN::WriteSB) while it's done just before my the ::MSN::changeStatus

Is it necessary? The plugin works only if an user change a status... why do you set again the same status?
If an user change status, check if there is a default avatar for that status, if yes load default avatar else do nothing.
I think that you can clean your proc in this way:
Code:
proc setAvatar { file new_state } {
if { $file != "" } {
::config::setKey displaypic $file
load_my_pic
return 1
} else {
return -1
}
}

btw it's only my opinion :)

Quote
Thanks for your todo list, i'm getting some problem to make a config windows with button but I should be able to do it...  :wink:

you are welcome :)
Bye ^___^


Title: AvatarAutoChange plugin 2.0 beta
Post by: Sethnakht on June 13, 2007, 06:45:44 pm
Hi,

Thanks for taking time in looking my code,
Quote from: "square87"
I think that you can clean your proc in this way:
Code:
proc setAvatar { file new_state } {
if { $file != "" } {
::config::setKey displaypic $file
load_my_pic
return 1
} else {
return -1
}
}

If the code is this one, the display picture is only set in local config (and shown on the GUI) but it's not sent to contacts... it will be only send at the next status change...  :( so.. for the time being, i re-send the status+DP (But a new Beforechangestate event could avoid this.. the DP will be send in the same time than the new status)


Title: AvatarAutoChange plugin 2.0 beta
Post by: square87 on June 14, 2007, 07:18:53 am
Hi Sethnakht :)
I don't know, i think that's a protocol thing. Maybe in that case "status change" is only a signal.
But anyway you'll save few seconds. If you want you can send a diff to ML.
About setAvatar you can change "load_my_pic" in "after 500 set_displaypic $file", and it will work, but, anyway, it calls change status proc.
Byez


Title: AvatarAutoChange plugin 2.0 beta
Post by: vivia on June 14, 2007, 10:01:08 am
It is normal, you must change status in order to notify the server.


Title: AvatarAutoChange plugin 2.0 beta
Post by: Sethnakht on June 19, 2007, 10:27:16 pm
I have submit a new version, it's include :
 - new config panel (image preview, file browser
 - resize avatar to 96x96 option

I have changed the name to make is shorter : AvatarAutoChange

here it is : AvatarAutoChange.zip (http://www.savefile.com/files/877485)

Thanks for your comments and suggestions, and if I can submit it...


Title: AvatarAutoChange plugin 2.0 beta
Post by: joaquimcr on June 21, 2007, 05:20:14 pm
lang pt_BR

Code:
amsn_lang_version 2
selectimage Selecionar uma imagem para cada estado :
resizeimage Converter imagens para o tamanho padrão (96px)


bye!


Title: AvatarAutoChange plugin 2.0 beta
Post by: Sethnakht on June 22, 2007, 06:54:29 pm
Quote from: "joaquimcr"
lang pt_BR

Code:
amsn_lang_version 2
selectimage Selecionar uma imagem para cada estado :
resizeimage Converter imagens para o tamanho padrão (96px)


bye!
Thanks joaquimcr !  :D


Title: AvatarAutoChange plugin 2.0 beta
Post by: lucianolev on June 26, 2007, 03:22:28 am
lang es_AR

Code:

amsn_lang_version 2
selectimage Seleccionar una imagen para cada estado :
resizeimage Redimensionar imágenes al tamaño predeterminado (96px)


Thanks for the plugin!   :D


Title: AvatarAutoChange plugin 2.0 beta
Post by: Sethnakht on July 01, 2007, 03:15:09 pm
Update : AvatarAutoChange.1.0beta3

Add "no avatar" button to supress the avatar for a state
Add controls to avoid errors if the image has been deleted...
Add es_AR and pt_BR languages (thanks to lucianolev and joaquimcr)

AvatarAutoChange.1.0.zip (http://www.savefile.com/files/877485)

Seth.


Title: AvatarAutoChange plugin 2.0 beta
Post by: Sethnakht on July 01, 2007, 09:34:25 pm
Update: AvatarAutoChange.1.0beta4

The avatar changed with the classic change display picture is kept in the plug-in settings.

This version contains all the needed stuff, it should be the final release.

AvatarAutoChange.1.0beta4.zip (http://www.savefile.com/files/877485)

Seth.


Title: AvatarAutoChange plugin 2.0 beta
Post by: Sethnakht on July 15, 2007, 12:52:49 pm
Update for a better interaction between the classic change display picture window and the plugin configuration pannel.
Also fix a error with the chamelon plugin.

AvatarAutoChange1.1 (http://www.savefile.com/files/889565)

I also have a question : Is it possible to be notified if the user SAVE or CANCEL the plugin options window :?:

Thanks,

Seth.


Title: AvatarAutoChange plugin 2.0 beta
Post by: square87 on July 15, 2007, 02:47:08 pm
Hello Seth.
Yes, it's possible.
The event is: PluginConfigured (it's called only when Save button is pressed)
and variable is: name (that is the plugin name that has been configured)
Bye


Title: AvatarAutoChange plugin 2.0 beta
Post by: Sethnakht on July 15, 2007, 05:05:55 pm
Quote from: "square87"
Hello Seth.
Yes, it's possible.
The event is: PluginConfigured (it's called only when Save button is pressed)
and variable is: name (that is the plugin name that has been configured)
Bye
Thanks square87 !


Title: AvatarAutoChange plugin 2.0 beta
Post by: Sethnakht on July 28, 2007, 10:40:35 am
New version available :
AvatarAutoChange.1.2.zip (http://www.savefile.com/files/924250)

It apply configuration changes only at the validation of the config pannel (so you can cancel config.)
Remove config for Hide state (because avatar is never send to contacts in this state...)

Seth.


Title: AvatarAutoChange plugin 2.0 beta
Post by: alferca on August 22, 2007, 10:25:27 am
Is there functionality available to change avatar randomly from a collection, every x seconds ??

cheers,
Álvaro


Title: AvatarAutoChange plugin 2.0 beta
Post by: Sethnakht on August 22, 2007, 09:10:28 pm
Quote from: "alferca"
Is there functionality available to change avatar randomly from a collection, every x seconds ??

That should not be too difficult while starting with this plugin, but it's not the first goal of this one, and that is likely to disturb some users,… but I will think about this ;-)


Title: AvatarAutoChange plugin 2.0 beta
Post by: philippe on October 07, 2007, 05:40:38 pm
Quote from: "alferca"
Is there functionality available to change avatar randomly from a collection, every x seconds ??

cheers,
Álvaro
[French]

Bonjour,
merci pour ce plugin sympa.
Je trouve que la possibilité de changer aléatoirement, toutes les X secondes ou minutes, les avatars serait intéressante.

[/French]


Title: AvatarAutoChange plugin 2.0 beta
Post by: Sethnakht on October 24, 2007, 11:01:52 pm
Hi,

I've finish the evolutions for a cyclic avatar change :
http://www.savefile.com/files/1145718

there is just one/two minor modification(s) to add to improve the config panel:
- I don't know how to execute a function when the user select a line in a listbox ?
- I'm trying to disable to control according to the optionbutton switch without success....

Thanks for your tests/comments

Sethnakht


Title: AvatarAutoChange plugin 2.0 beta
Post by: Sethnakht on November 10, 2007, 05:25:10 pm
new beta : (should be the final if no comments...)
-fix timers problems
-new GUI

AvatarAutoChange 2.0 beta6 (http://www.savefile.com/files/1185695)

Seth.


Title: Request for some functionalities
Post by: galmiche on November 28, 2007, 12:18:19 pm
Hi,

Can you please in your next release, add the possibility to select multiple images at the same time (or a complete directory), for the 'change image every x minutes' menu?
Same query for selecting multiple image to delete in the list.

Thx for this nice plugin.
Hervé


Title: AvatarAutoChange plugin 2.0 beta
Post by: Sethnakht on January 16, 2008, 11:42:42 pm
Hello, small fix for the plugin :
 - don't do anything when an other plugin is configured
 - add multiple select/unselect files for random change :wink:

http://www.savefile.com/files/1322192


Title: AvatarAutoChange plugin 2.0 beta
Post by: Sethnakht on January 17, 2008, 09:42:24 pm
Ooops, the prévious release doesn't allow original file size in random mode, here is the fix :

http://www.savefile.com/files/1323820


Title: AvatarAutoChange plugin 2.0 beta
Post by: Sethnakht on January 19, 2008, 08:07:45 pm
New version :
 - Add support of custom states

http://www.savefile.com/files/1329121

NB : I'm interested in adding webcam support (take a screenshot on state change, or every xx minuts) but I can't find the way to take a screenshot with the webcam and save it to file...  :cry: ... help is welcome  :D


Title: AvatarAutoChange plugin 2.0 beta
Post by: WolfRamiO on April 28, 2008, 02:12:39 am
good job men!, i just have a little problem, how i fetch pictures from a entire directory? i try to mark all files one by one holding Ctrl key and then click  but when i press "open" its say "file dosnt exist" , its there a way to automate the process?  Regards! :shock:


Title: AvatarAutoChange plugin 2.0 beta
Post by: Sethnakht on May 05, 2008, 06:00:11 pm
Quote from: "WolfRamiO"
good job men!, i just have a little problem, how i fetch pictures from a entire directory? i try to mark all files one by one holding Ctrl key and then click  but when i press "open" its say "file dosnt exist" , its there a way to automate the process?  Regards! :shock:
it should works fine, there is maybe too many files, did you try with 3 or 4 files only ? does it works ? All selected files are images files (png, jpeg, gif, bmp..) ?


Title: AvatarAutoChange plugin 2.0 beta
Post by: WolfRamiO on May 06, 2008, 02:46:50 am
yes, i try even with 2 pictures, both JPG, i click on ADD, and i hold "ctrl" key to mark pictures in the open dialog, then "Open and its say File "nameofthefile" does not exist  REGARDS!!!


Title: problem
Post by: vincivis on July 09, 2008, 11:49:22 am
Hi. I use avatar auto change plugin and it works very well. But when i right click on system tray icon to change my staus, i see custom status appear twice.

(http://civis.altervista.org/amsn_aac.gif)

How can i solve?

Vincenzo.


Title: AvatarAutoChange plugin 2.0 beta
Post by: Sethnakht on July 26, 2008, 09:41:25 pm
Hello, are you sure that this problem come from AvatarAutoChange ? what is the version you are using ?

the vers 2.0beta9 (should be a release...) is available at : http://www.savefile.com/files/1883669 (http://www.savefile.com/files/1883669
)


Title: AvatarAutoChange plugin 2.0 beta
Post by: vincivis on July 27, 2008, 10:03:21 am
Custom status appear twice since i enable this plugin. I use a portable (http://www.amsn-project.net/wiki/Portable_aMSN), could be a problem?

Vincenzo.


Title: AvatarAutoChange plugin 2.0 beta
Post by: hydreliox on November 24, 2009, 03:49:03 am
Hi,

I would like to know if this plug-in is still in develoment since the last post (2007) and if a new version can be downloaded. (the last links are apparently dead)


Title: AvatarAutoChange plugin 2.0 beta
Post by: hydreliox on December 24, 2009, 01:55:12 am
Maybe someone to aswer to my question about the development ?


Title: AvatarAutoChange plugin 2.0 beta
Post by: kakaroto on December 24, 2009, 06:12:18 am
no answer probably means it's not in development anymore, hehe


Title: Re: AvatarAutoChange plugin 2.0 beta
Post by: hydreliox on January 04, 2010, 04:14:52 pm
no answer probably means it's not in development anymore, hehe

You should be right, so is it possible to get the source and try to improve it. I do not know under what licence is this plug-in....


Title: Re: AvatarAutoChange plugin 2.0 beta
Post by: hydreliox on January 07, 2010, 08:27:47 pm
Nobody care about plug-in or what ?

3 days without any post in this section....


Title: Re: AvatarAutoChange plugin 2.0 beta
Post by: Turak on January 09, 2010, 05:46:57 pm
Perhaps you should send a personal message to Sethnakht  (http://www.amsn-project.net/forums/index.php?action=pm;sa=send;u=3584) to get the source ?
He may be notified by email...   :-\


Title: Re: AvatarAutoChange plugin 2.0 beta
Post by: hydreliox on January 09, 2010, 05:57:36 pm
I've already try to contact him a few days ago, but no answer for now.


Title: Re: AvatarAutoChange plugin 2.0 beta
Post by: kakaroto on January 09, 2010, 08:16:12 pm
hey, the plugins are in tcl/tk, the plugin itself IS the source (it's an interpreted language), just edit the tcl file with your favorite text editor and do whatever you want...


Title: Re: AvatarAutoChange plugin 2.0 beta
Post by: hydreliox on January 09, 2010, 08:38:21 pm
You're right Kakaroto but links in this topic are all deads.

When I talk about "source" i mean the last beta version available. Maybe if someone had this version installed on his computer, please share it !!!

[Edit : i've not tested amsn2 yet but is this plug-in will be compatible with the new version ?]


Title: Re: AvatarAutoChange plugin 2.0 beta
Post by: arantes on January 09, 2010, 10:18:56 pm
No, amsn2 won't be compatible with current plugins.


Title: Re: AvatarAutoChange plugin 2.0 beta
Post by: hydreliox on January 10, 2010, 12:45:15 am
Thank for your answer arantes, pretty clear. I think future plug-in need to be code inpython to work with aMsn 2 ...

But if i can get the source (the last beta of AvatarAutoChange) i'll try to translate for the new aMsn...


Title: Re: AvatarAutoChange plugin 2.0 beta
Post by: arantes on January 11, 2010, 03:34:59 am
aMSN2 is so far from being usable that it doesn't have a plugin interface yet ^^ and translating it would be as hard as rewriting it from scratch i think because the new interface will probably have nothing to do with the old one.


Title: Re: AvatarAutoChange plugin 2.0 beta
Post by: hydreliox on January 11, 2010, 10:21:54 am
Ok thanks for the precision


Title: Re: AvatarAutoChange plugin 2.0 beta
Post by: Sethnakht on January 16, 2010, 11:14:43 pm
Hi Hydrelix,

Here is the last version of avatar Autochange, still works fine on amsn 0.XX (just don't try the webcam support, doesn't wok, it was just a try)

http://www.megaupload.com/?d=T50VVZ53

You can reuse the code & improve it as you want.

Sethnakht


Title: Re: AvatarAutoChange plugin 2.0 beta
Post by: hydreliox on January 17, 2010, 01:25:18 am
Thank You very much Sethnakht.

I did not hope an answer from you any more.
 
I think, in the first time i just will try to understand how your plug-in work and maybe rewrite it in python when the next aMsn2 will come.

Thank you again ...