Help - Search - Members - Calendar
Full Version: Answering and incoming call
Skype Community > English > Development, Betas and Skype Garage > Skype Public API
Aaron1234nz_
I am trying to write an app that will detect when there is an incoming call from skype, answer the call, the toggle a pin on my parallel port (for linking with ham radio).

I am using VB and SkypeX but have not worked out a way to actually find out when a call is coming in. Answering a call requires a call ID, but how can I find the call ID?

I have concluded that either I am thick or that this is hard to do.

suggestions welcome.
andreskaasik_
There is an example using Skype4COM that does pretty much the same you are trying to do:

https://developer.skype.com/Docs/Skype4COML...MLib/Answer_vbs
Aaron1234nz_
Thank you for that link. I got the code going in VB.NET with the following ammendments:

Replace
CODE
Set oSkype = WScript.CreateObject("Skype4COM.Skype","Skype_")

with
CODE
Dim WithEvents oSkype As New SKYPE4COMLib.Skype

putting this inside the Form1_Load Sub
CODE
If Not oSkype.Client.IsRunning Then

oSkype.Client.Start()

End If



oSkype.Attach


and removing this section

CODE
Do While True

 WScript.Sleep(60000)

Loop
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.