Help - Search - Members - Calendar
Full Version: Could not receive events
Skype Community > English > Development, Betas and Skype Garage > Skype Public API
Ankit Shrivastava
I am working in .NET 2005 c++ using Skype4Com.dll file version 1.0.27.1. I am facing some problems regarding registering of events for Skype.

1. I have registered attachment and mute events. I am able to get attachment status but not mute status from Skype.

Please find Code Snippet below:
===============================================================================

main()

{
SKYPE4COMLib::SkypeClass ^m_hSkypeClass;

m_hSkypeClass->_ISkypeEvents_Event_AttachmentStatus += gcnew
_ISkypeEvents_AttachmentStatusEventHandler(&attachmentStatus);

m_hSkypeClass->_ISkypeEvents_Event_Mute += gcnew
_ISkypeEvents_MuteEventHandler(&muteInfo);

}

void muteInfo(bool f_sStatus)
{
MessageBox::Show(“In Mute status”);
}

void attachmentStatus(TAttachmentStatus f_eAttachmentStatus)
{
MessageBox::Show(“In attachment status status”);
}

===============================================================================

Am I am doing something wrong?

2. Also, I would like to get the event when user changes and save the Audio Input and Audio Output settings from Skype using menu
(Tool->Options->Sound Devices (Audio In and Audio Out)). I am not able to find out which event to register and how that event will be used to detect change in Audio In and Audio Out settings.


Please help me. Code Snippet will be more helpful. Thanks in advanced.

Warm Regards,
Ankit.
Avo Nappo
> but not mute status from Skype.

Strange. Just tested with 1.0.29.0 and OnMute was firing just fine when I toggled it during a call.

> 2. Also, I would like to get the event when user changes and save the
> Audio Input and Audio Output

I dont think there are events for audio device changes. However, you can catch changes to those properties via OnReply event handler.

CODE
Procedure TForm1.SkypeReply (ASender: TObject; const pCommand: ICommand);

Begin
  if Pos('AUDIO_IN', pCommand.Reply) <> 0) Then
      Log('Audio IN device changed: ' + pCommand.Reply);
  if Pos('AUDIO_OUT', pCommand.Reply) <> 0) Then
      Log('Audio OUT device changed: ' + pCommand.Reply);
End;

Skype.OnReply := TForm1.SkypeReply;
Paraveterinary
- Moved to API -
TheUberOverlord
QUOTE (Ankit Shrivastava @ Wed Apr 30 2008, 07:43)
Go to the original post
I am working in .NET 2005 c++ using Skype4Com.dll file version 1.0.27.1. I am facing some problems regarding registering of events for Skype.

1. I have registered attachment and mute events. I am able to get attachment status but not mute status from Skype.

Please find Code Snippet below:
===============================================================================

main()

{
SKYPE4COMLib::SkypeClass ^m_hSkypeClass;

m_hSkypeClass->_ISkypeEvents_Event_AttachmentStatus += gcnew
_ISkypeEvents_AttachmentStatusEventHandler(&attachmentStatus);

m_hSkypeClass->_ISkypeEvents_Event_Mute += gcnew
_ISkypeEvents_MuteEventHandler(&muteInfo);

}

void muteInfo(bool f_sStatus)
{
MessageBox::Show(“In Mute status”);
}

void attachmentStatus(TAttachmentStatus f_eAttachmentStatus)
{
MessageBox::Show(“In attachment status status”);
}

===============================================================================

Am I am doing something wrong?

2. Also, I would like to get the event when user changes and save the Audio Input and Audio Output settings from Skype using menu
(Tool->Options->Sound Devices (Audio In and Audio Out)). I am not able to find out which event to register and how that event will be used to detect change in Audio In and Audio Out settings.


Please help me. Code Snippet will be more helpful. Thanks in advanced.

Warm Regards,
Ankit.


Here is a Example C# 2008 project I created, that handles ALL events including MUTE:

http://forum.skype.com/index.php?showtopic=142821

There is some ambiguity with Mute that this example might help show even if you are c++
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.