SV650.org - SV650 & Gladius 650 Forum



Idle Banter For non SV and non bike related chat (and the odd bit of humour - but if any post isn't suitable it'll get deleted real quick).
There's also a "U" rating so please respect this. Newbies can also say "hello" here too.

Reply
 
Thread Tools
Old 19-01-07, 10:50 AM   #1
TSM
The Sick Man
Mega Poster
 
TSM's Avatar
 
Join Date: Nov 2004
Location: Peckham.SE.LDN
Posts: 4,768
Default Skype & VB6

Has anyone done any work with VB6 + Skype.

I am trying to attach the Skype4COM API but its not working. Any ideas. Im not brill at VB6, just trying to make a dinky app.
__________________
OTR: KTM 690 Duke R 2015 Full Akro
SIDELINE: Kwak ZX636 A1P 2002, Red, R&G's, Yoshi, Double Bubble Screen
GONE: Kwak ZX-7R P1, Full Akro, Undertray, Screen
GONE: SV650S K2 Very Bruised & Without Fairing, Motovation Frame Sliders, R&G Ally Sprocket Toe Protector, HEL 2 Line Setup, GSXR K1 600 RWU Forks, Barnett Clutch & Springs, Penske 8981 Shock, Gilles Ti Rearsets, Steel Barends, Scottoiler, AFAM Chain & Sprockets, Twin FIAMM Horns, Skidmarx Bellypan, Full Micron Zeta Steel System, Cut down undertay.

Forum Problems & Information / Site Suggestions
TSM is offline   Reply With Quote
Old 19-01-07, 10:57 AM   #2
TSM
The Sick Man
Mega Poster
 
TSM's Avatar
 
Join Date: Nov 2004
Location: Peckham.SE.LDN
Posts: 4,768
Default Re: Skype & VB6

Quote:
Originally Posted by rubberduckofdeath
Quote:
Originally Posted by TSM
Has anyone done any work with VB6 + Skype.

I am trying to attach the Skype4COM API but its not working. Any ideas. Im not brill at VB6, just trying to make a dinky app.
This might not sound helpful, but why not try downloading the free version of Visual Studio .NET and using VB.NET (or C#, even better!) - might find it easier (or harder) ?

Lee.
I thought about it, but some of our apps are already VB6 and this would be an addon when ive got it working.
__________________
OTR: KTM 690 Duke R 2015 Full Akro
SIDELINE: Kwak ZX636 A1P 2002, Red, R&G's, Yoshi, Double Bubble Screen
GONE: Kwak ZX-7R P1, Full Akro, Undertray, Screen
GONE: SV650S K2 Very Bruised & Without Fairing, Motovation Frame Sliders, R&G Ally Sprocket Toe Protector, HEL 2 Line Setup, GSXR K1 600 RWU Forks, Barnett Clutch & Springs, Penske 8981 Shock, Gilles Ti Rearsets, Steel Barends, Scottoiler, AFAM Chain & Sprockets, Twin FIAMM Horns, Skidmarx Bellypan, Full Micron Zeta Steel System, Cut down undertay.

Forum Problems & Information / Site Suggestions
TSM is offline   Reply With Quote
Old 19-01-07, 10:58 AM   #3
thor
Guest
 
Posts: n/a
Default

VB6 is ****. It's very old.
  Reply With Quote
Old 19-01-07, 11:06 AM   #4
TSM
The Sick Man
Mega Poster
 
TSM's Avatar
 
Join Date: Nov 2004
Location: Peckham.SE.LDN
Posts: 4,768
Default

Yeh we have old apps that i alone cant convert.
__________________
OTR: KTM 690 Duke R 2015 Full Akro
SIDELINE: Kwak ZX636 A1P 2002, Red, R&G's, Yoshi, Double Bubble Screen
GONE: Kwak ZX-7R P1, Full Akro, Undertray, Screen
GONE: SV650S K2 Very Bruised & Without Fairing, Motovation Frame Sliders, R&G Ally Sprocket Toe Protector, HEL 2 Line Setup, GSXR K1 600 RWU Forks, Barnett Clutch & Springs, Penske 8981 Shock, Gilles Ti Rearsets, Steel Barends, Scottoiler, AFAM Chain & Sprockets, Twin FIAMM Horns, Skidmarx Bellypan, Full Micron Zeta Steel System, Cut down undertay.

Forum Problems & Information / Site Suggestions
TSM is offline   Reply With Quote
Old 19-01-07, 11:11 AM   #5
Baph
Guest
 
Posts: n/a
Default

Not sure if you ONLY want to attach, but I figure if you're wanting to attach, you'll be wanting to do other stuff later. Apologies if I'm showing you how to suck an egg. Attach() happens in Form_Load below:

Code:
Public WithEvents Skype1 As SKYPE4COMLib.Skype 
Public SkypeCall As SKYPE4COMLib.Call 
Public CommandId As Integer 

Private Sub CallButton_Click() 
  Set SkypeCall = Skype1.PlaceCall("echo123") 
End Sub 

Private Sub Form_Load() 
  Set Skype1 = New SKYPE4COMLib.Skype 
  Skype1.Attach (5) 
  CommandId = 1 
End Sub 

Private Sub StartRecordingButton_Click() 
  CommandId = CommandId + 1 
  Dim CommandText As String 
  CommandText = "ALTER CALL " & SkypeCall.Id & " SET_OUTPUT FILE=" & Chr$(34) & "C:\skype.wav" & Chr$(34) 
  Dim CommandObj 
  Set CommandObj = Skype1.Command(CommandId, CommandText) 
  Skype1.SendCommand (CommandObj) 
End Sub 

Private Sub StopRecordingButton_Click() 
  CommandId = CommandId + 1 
  Dim CommandText As String 
  CommandText = "ALTER CALL " & SkypeCall.Id & " SET_OUTPUT" 
  Dim CommandObj 
  Set CommandObj = Skype1.Command(CommandId, CommandText) 
  Skype1.SendCommand (CommandObj) 
End Sub 

Private Sub Skype1_Command(ByVal pCommand As SKYPE4COMLib.ICommand) 
  Debug.Print "C>" & pCommand.Command 
End Sub 

Private Sub Skype1_Reply(ByVal pCommand As SKYPE4COMLib.ICommand) 
  Debug.Print "R>" & pCommand.Reply 
End Sub
In case you're wondering, attach parameter (5) is the version of the protocol, 5 is default, but you have to specify it still IIRC.

HTH
  Reply With Quote
Old 19-01-07, 01:04 PM   #6
TSM
The Sick Man
Mega Poster
 
TSM's Avatar
 
Join Date: Nov 2004
Location: Peckham.SE.LDN
Posts: 4,768
Default

Cool all done now.

I could not get the recording part of your code to work but would have been brill if it did, anyway what i needed to work is now working.
__________________
OTR: KTM 690 Duke R 2015 Full Akro
SIDELINE: Kwak ZX636 A1P 2002, Red, R&G's, Yoshi, Double Bubble Screen
GONE: Kwak ZX-7R P1, Full Akro, Undertray, Screen
GONE: SV650S K2 Very Bruised & Without Fairing, Motovation Frame Sliders, R&G Ally Sprocket Toe Protector, HEL 2 Line Setup, GSXR K1 600 RWU Forks, Barnett Clutch & Springs, Penske 8981 Shock, Gilles Ti Rearsets, Steel Barends, Scottoiler, AFAM Chain & Sprockets, Twin FIAMM Horns, Skidmarx Bellypan, Full Micron Zeta Steel System, Cut down undertay.

Forum Problems & Information / Site Suggestions
TSM is offline   Reply With Quote
Old 19-01-07, 01:09 PM   #7
muffles
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by rubberduckofdeath
Quote:
Originally Posted by thor
VB6 is sh*t. It's very old.
<nods>
and it's been end of life for about 2 years hasn't it!?

that said, we're still using it for one part of our system, time/cost/imminent large changes to our system mean upgrading isn't worthwhile...
  Reply With Quote
Old 19-01-07, 01:13 PM   #8
Baph
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by TSM
Cool all done now.

I could not get the recording part of your code to work but would have been brill if it did, anyway what i needed to work is now working.
Good good, glad it helped. Not my code, just something I found in our CVS tree. Give me a shout if there's other stuff you find (in pretty much any language) difficult to get run because of an odd problem. We have a pretty extensive source in CVS
  Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Skype help... plowsie Idle Banter 5 21-02-08 08:40 PM
Skype do you have it or an equivalent? Stig Idle Banter 13 04-02-08 11:45 AM
Skype gettin2dizzy Idle Banter 0 31-10-07 03:35 PM
Anyone using Skype? Nekkid Idle Banter 4 18-08-07 03:51 PM
Skype who has it? Stig Idle Banter 16 01-07-05 10:16 AM


All times are GMT. The time now is 04:24 AM.


Powered by vBulletin® - Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.