Mehrdeutigkeit Skypeapi

  • C#
  • .NET (FX) 4.5–4.8

Es gibt 1 Antwort in diesem Thema. Der letzte Beitrag () ist von Michdi.

    Mehrdeutigkeit Skypeapi

    Hallöle,

    Hab ein kleines Problem. Ich würde gerne den Skype.AttachmentStatus von meinem skypeclient bekommen. Dafüt nehm ich die Offizielle Api von Skype, aber wenn ich den Code einfüge bekommen ich den Fehler:

    C#-Quellcode

    1. Schweregrad Code Beschreibung Projekt Datei Zeile Unterdrückungszustand
    2. Fehler CS0229 Mehrdeutigkeit zwischen "_ISkypeEvents_Event.AttachmentStatus" und "ISkype.AttachmentStatus" LetsPlayTool D:\Meine Dateien\programmieren\Github\LetsPlayTool\LetsPlayTool\LetsPlayTool\Form1.cs 226 Aktiv


    Code:

    C#-Quellcode

    1. if(skype.AttachmentStatus == skype.Convert.TextToAttachmentStatus("SUCCESS"))
    2. {
    3. }


    Kann mir da evtl. jemand helfen?
    Versuche mal das im Form Start Up

    VB.NET-Quellcode

    1. oSkype.Attach(7, False)

    und in der Public Class

    VB.NET-Quellcode

    1. Dim WithEvents oSkype As New Skype


    Willst du damit ein Programm schreiben, welches automatisch antwortet Wenn ja:

    VB.NET-Quellcode

    1. Private Sub oSkype_MessageStatus(pMessage As ChatMessage, Status As TChatMessageStatus) Handles oSkype.MessageStatus
    2. Dim Msg As String = pMessage.Body
    3. Dim c As Chat = pMessage.Chat
    4. If Msg = "NACHRICHTDIEANKOMMT" Then
    5. c.SendMessage("ANTWORT TEXT DEN, WELCHER VERSENDET WIRD")
    6. End If
    7. End Sub


    Ich hoffe ich habe geholfen, viel Spaß!
    Ach ja, wenn du Lust hast ich habe noch einen Skype Client :D

    vered.ml

    Da ist auch das automatische Antwort Feature eingebaut welches auf hi oder hallo antwortet. :thumbup:

    Sorry have gerade gemerkt, dass du C# ntuzt. Musst du sonst einmal konvertieren
    Die beste maschinelle Übersetzung der Welt - DeepL Übersetzer
    Alle Zitate, die ich seit dem 1.9.2017 übersetzt habe, wurden vollautomatisch mit DeepL übersetzt.