Miranda IM

Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: How to tell miranda that own avatar was changed?

  1. #1
    Join Date
    May 2007
    Location
    Czech republic
    Posts
    676

    How to tell miranda that own avatar was changed?

    Is there some service or something to invoke GetMyAvatar function? Now its called only once, when miranda start.

  2. #2
    Join Date
    June 2005
    Posts
    11,839

  3. #3
    Join Date
    May 2007
    Location
    Czech republic
    Posts
    676
    Can you tell me name or something more? Dont know what exactly i am looking for.

    JSendBroadcast( hContact, ACKTYPE_AVATAR, ACKRESULT_SUCCESS, HANDLE( &AI ), NULL );
    or its something else?

  4. #4
    Join Date
    June 2005
    Posts
    11,839
    Well, I have to search.... It's somewhere in your own V-CARD retrieval.

  5. #5
    Join Date
    July 2005
    Location
    Brasil
    Posts
    2,726
    Quote Originally Posted by Robyer View Post
    Can you tell me name or something more? Dont know what exactly i am looking for.

    JSendBroadcast( hContact, ACKTYPE_AVATAR, ACKRESULT_SUCCESS, HANDLE( &AI ), NULL );
    or its something else?
    That notifies that a contact avatar has changed, not that your own has changed.

    To check own avatar changes, avs listen to db changes in these keys:
    !strcmp(cws->szSetting, "AvatarFile")
    !strcmp(cws->szSetting, "PictObject")
    !strcmp(cws->szSetting, "AvatarHash")
    !strcmp(cws->szSetting, "AvatarSaved"))

    If one changed it assumes that the own avatar changed.

    The other way to notify is calling


    // Service to be called by protocols to report an avatar has changed. Some avatar changes
    // can be detected automatically, but some not (by now only Skype ones)
    // wParam = (char *)szProto (protocol for which a new avatar was set)
    // lParam = 0

    #define MS_AV_REPORTMYAVATARCHANGED "SV_Avatars/ReportMyAvatarChanged"
    Last edited by pescuma; 17 Feb 2011 at 1:59 PM.

  6. #6
    Join Date
    May 2007
    Location
    Czech republic
    Posts
    676
    Pescuma: Great, thank you.

  7. #7
    Join Date
    April 2011
    Posts
    21
    Hi, have similar problem i use icq protocol and i start ICQ(normal) and change me avater now i start me miranda and if i look to me avatar its OLD. Can someone tell me how it repair?
    btw: the code what u tipe her i dont understand

  8. #8
    Join Date
    April 2005
    Posts
    739
    Quote Originally Posted by volfx View Post
    Hi, have similar problem
    No, you have completely unrelated problem.
    This topic is for authors writing plugins for miranda.
    Not for users having general misunderstanding and frustration. These matters are attended in either relevant protocol plugin thread or general help forum.

  9. #9
    Join Date
    May 2007
    Location
    Czech republic
    Posts
    676
    Hey, one more thing.

    How can i tell avatarservice that some contact changed his avatar (so he should call GetAvatarInfo for that contact)?

    EDIT: and maybe same thing also for own avatar?

  10. #10
    Join Date
    June 2005
    Posts
    11,839
    ACKTYPE_AVATAR, Please take a look at any other protocol, like MSN they all do that.

Similar Threads

  1. [resolved] How to port history from ICQ Buddies that changed UIN?
    By forgetmyname in forum Technical Support
    Replies: 2
    Last Post: 13 Sep 2009, 1:41 PM
  2. [resolved] How to set my own picture/avatar for all services?
    By thorsten in forum Technical Support
    Replies: 4
    Last Post: 25 Oct 2007, 12:54 PM
  3. How to set my own avatar? (and other questions)
    By TioTrag in forum Technical Support
    Replies: 2
    Last Post: 19 Oct 2007, 8:21 PM
  4. How do I even set my own avatar?
    By raycosm in forum Technical Support
    Replies: 2
    Last Post: 1 Feb 2007, 11:57 AM
  5. Will not tell me that I have received a message
    By Macy in forum Technical Support
    Replies: 7
    Last Post: 13 Apr 2006, 9:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •