1. #1
    Avatar von Snees
    Registriert seit
    18.11.2011
    Beiträge
    1.001
    Thanked 590 Times in 319 Posts

    Standard [Sample] JappyLib

    Hallo, ich habe mir eben mal die Jappy-Lib angesehen und nun folgt hier von mir ein kleines Sample wie man sich einloggen kann, seine Profildaten abrufen kann und einen Gästebucheintrag machen kann.

    Code:
    Imports JappyLibV1u2
    
    Module Module1
    
        Private client As New JappyLibV1u2.Jappy
        Private AnzahlNachrichten As Integer = 0
    
        Sub Main()
    
            Console.Title = "Jappy Bot Sample by Tr0pe7 @ http://u-hacks.net"
    
            Login("USERNAME", "PASSWORD")
    
            Console.ReadKey()
    
        End Sub
    
        Private Sub Login(ByVal username As String, ByVal password As String)
    
            If client.Login(username, password) Then
    
                CWrite("[+] Erfolgreich als " & username & " eingeloggt." & vbNewLine, ConsoleColor.Yellow)
    
                GoOn()
    
            Else
    
                CWrite("[-] Login als " & username & " fehlgeschlagen." & vbNewLine, ConsoleColor.Red)
    
            End If
    
        End Sub
    
        Private Sub GoOn()
    
            client.LoadGeneralInfo()
    
            CWrite(" --> Credits: " & client.MyNick.MyCredits, ConsoleColor.Yellow)
    
            CWrite(" --> Rang: " & client.MyNick.MyRank, ConsoleColor.Yellow)
    
            CWrite(" --> Fans: " & client.MyNick.MyFans, ConsoleColor.Yellow)
    
            CWrite(" --> Gäastebucheinträge: " & client.MyNick.MyGbEntries, ConsoleColor.Yellow)
    
            Dim Freunde As String() = client.MyNick.MyFriends
    
            Dim Anzahl_Freunde As Integer = 0
    
            For Each Freund In Freunde
    
                Anzahl_Freunde += 1
    
            Next
    
            CWrite(" --> Freunde: " & Anzahl_Freunde, ConsoleColor.Yellow)
    
            Dim Freunde_Online As String() = client.MyNick.MyFriendsOnline
    
            Dim Anzahl_Freunde_Online As Integer = 0
    
            For Each Freund In Freunde
    
                Anzahl_Freunde_Online += 1
    
            Next
    
            CWrite(" --> Freunde Online: " & Anzahl_Freunde_Online, ConsoleColor.Yellow)
    
            CWrite(" --> ErsteBenutzerID: " & client.MyNick.MyFirstUserId, ConsoleColor.Yellow)
    
            CWrite(" --> Besucher: " & client.MyNick.MyVisiter, ConsoleColor.Yellow)
    
            CWrite(" --> Wohnort: " & client.MyNick.MyLocation, ConsoleColor.Yellow)
    
            CWrite(" --> Onlinestatus: " & client.MyNick.MyOnlineState, ConsoleColor.Yellow)
    
            'GB-Eintrag machen an Nick Snees mit dem Text Hallo
    
            'client.Funcs.WriteGbEntry("Snees", "Hallo")
    
        End Sub
    
        Private Sub CWrite(ByVal text As String, ByVal color As ConsoleColor)
    
            Console.ForegroundColor = color
    
            Console.WriteLine(text)
    
            Console.ForegroundColor = ConsoleColor.White
    
        End Sub
    
    End Module

  2. The Following User Says Thank You to Snees For This Useful Post:

    Sploxfreak (20.03.2012)

Ähnliche Themen

  1. VB.Net TabControl Webrowser[Sample]
    Von exception im Forum .Net
    Antworten: 0
    Letzter Beitrag: 02.11.2013, 15:06
  2. [Suche] KNLib Sample
    Von AmJano im Forum Knuddels Programmierung
    Antworten: 3
    Letzter Beitrag: 01.11.2012, 23:41
  3. JappyLib v1.0 Beta
    Von !lkay im Forum Showroom
    Antworten: 11
    Letzter Beitrag: 28.09.2012, 21:58
  4. [Vorschlag] U-Hacks API + Sample
    Von xTracZ im Forum Feedback
    Antworten: 5
    Letzter Beitrag: 08.01.2012, 22:30
  5. [C#-OS] Umfragen Bot Sample
    Von The Don of NYC im Forum Sourcecode
    Antworten: 0
    Letzter Beitrag: 09.05.2011, 21:02
Diese Seite nutzt Cookies, um das Nutzererlebnis zu verbessern. Klicken Sie hier, um das Cookie-Tracking zu deaktivieren.