Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 07:02

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



VB Advance Loggin [help^^]

Discussion on VB Advance Loggin [help^^] within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1
 
HackTec's Avatar
 
elite*gold: 76
Join Date: Apr 2010
Posts: 1,773
Received Thanks: 1,242
VB Advance Loggin [help^^]

hey ich habe eine problem ich möchte ein loggin in vb machen
bevor einer sagt öhh ist das einfach das ist ja nicht mein problem

mit 1 benutzer und 1 pass schaff ich das auch nun will ich es aber auf mehre erweitern nur mein code lässt ei leerzeichen uach gelten?

hat einer ne idee?

Quote:
Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click
Dim u1() As String = {"6YPXFR7M", "5TTKH7LB", "FDEPVLSE", "3B0KPFÖP", "Ö0CA2BNR", "beta"}
Dim p1() As String = {"QBCG", "RTWS", "SDNR", "QACR", "BMRF", "beta"}

u1(1) = TextBox1.Text
p1(1) = TextBox2.Text
TextBox1.Text = u1(1)
TextBox2.Text = p1(1)

If TextBox1.Text = u1(1).ToString And TextBox2.Text = p1(1).ToString Then

MsgBox("Willkommen....!")
GroupBox1.Visible = True
GroupBox2.Visible = True
Else

MsgBox("Password oder Benutzername falsch eingegeben !")

End If
End Sub

und noch ne frage ^^

wie mache ich simulierte mausklicks zu bestimmten x und y achsen? habs frueher mal geschafft jetzt net mehr :/
HackTec is offline  
Old 10/31/2010, 21:34   #2
 
elite*gold: 0
Join Date: Mar 2009
Posts: 3,963
Received Thanks: 1,584
MouseKlick's:

Das einfach über das erste Private Sub packen..
Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vkeys As Long) As Integer
und das darunter
Private Declare Sub mouse_event Lib "user32" ( _
ByVal dwFlags As Long, _
ByVal dx As Long, _
ByVal dy As Long, _
ByVal cButtons As Long, _
ByVal dwExtraInfo As Long)

Private Const MOUSEEVENTF_ABSOLUTE = &H8000
Private Const MOUSEEVENTF_LEFTDOWN = &H2
Private Const MOUSEEVENTF_LEFTUP = &H4
Private Const MOUSEEVENTF_MIDDLEDOWN = &H20
Private Const MOUSEEVENTF_MIDDLEUP = &H40
Private Const MOUSEEVENTF_MOVE = &H1
Private Const MOUSEEVENTF_RIGHTDOWN = &H8
Private Const MOUSEEVENTF_RIGHTUP = &H10



Für die Mausposition um zu wissen wo die maus gerade ist das benutzen
MousePosition.Y und MousePosition.X

Fürs bewegen dann das hier am besten nehmen

Windows.Forms.Cursor.Position = New Point(X, Y)


fürs klicken dann darunter :

mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0)
mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0)


das ist es

und fürs Login:

Code:
Public Class Form1
    Dim u1, u2, u3, u4, u5 As String
    Dim p1, p2, p3, p4, p5 As String
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        u1 = "User1"
        u2 = "User2"
        u3 = "User3"
        u4 = "User4"
        u5 = "User5"

        p1 = "Pw1"
        p2 = "Pw2"
        p3 = "Pw3"
        p4 = "Pw4"
        p5 = "Pw5"


    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        If TextBox1.Text = u1 Then

            If TextBox2.Text = p1 Then
                MsgBox("win")
            End If

        ElseIf TextBox1.Text = u2 Then

            If TextBox2.Text = p2 Then
                MsgBox("win2")
            End If

        ElseIf TextBox1.Text = u3 Then

            If TextBox2.Text = p3 Then
                MsgBox("win3")
            End If

        ElseIf TextBox1.Text = u4 Then

            If TextBox2.Text = p4 Then
                MsgBox("win4")
            End If

        ElseIf TextBox1.Text = u5 Then

            If TextBox2.Text = p5 Then
                MsgBox("win5")
            End If

        End If



    End Sub
End Class
EDIT:

NOchmal ein beispiel fürs mausklicken:

Code:
Public Class Form1



    Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vkeys As Long) As Integer

    Private Declare Sub mouse_event Lib "user32" ( _
    ByVal dwFlags As Long, _
    ByVal dx As Long, _
    ByVal dy As Long, _
    ByVal cButtons As Long, _
    ByVal dwExtraInfo As Long)

    Private Const MOUSEEVENTF_ABSOLUTE = &H8000
    Private Const MOUSEEVENTF_LEFTDOWN = &H2
    Private Const MOUSEEVENTF_LEFTUP = &H4
    Private Const MOUSEEVENTF_MIDDLEDOWN = &H20
    Private Const MOUSEEVENTF_MIDDLEUP = &H40
    Private Const MOUSEEVENTF_MOVE = &H1
    Private Const MOUSEEVENTF_RIGHTDOWN = &H8
    Private Const MOUSEEVENTF_RIGHTUP = &H10


    Dim mousex As String
    Dim mousey As String

    Dim klickx As String
    Dim klicky As String
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Timer1.Start()
        Button1.Text = "KoordinatenFestlegen"
        Button2.Text = "Maus auf die Gespeicherte Koordinate klicken lassen"
    End Sub

    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
      

        mousex = MousePosition.Y 'MousePosition.Y oder X gibt and wo die maus gerade ist ..
        mousey = MousePosition.X

        Label1.Text = "Derzeitige MausPosition:  X " + mousex + ", Y " + mousey
    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        klickx = TextBox1.Text 'Textbox1 ist nun die X koordinate
        klicky = TextBox2.Text 'textbox2 ist nun die Y koordinate
    End Sub

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        Windows.Forms.Cursor.Position = New Point(klicky, klickx)

        mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0)
        mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0)
    End Sub
End Class
Algaten™ is offline  
Thanks
1 User
Old 11/01/2010, 01:11   #3
 
HackTec's Avatar
 
elite*gold: 76
Join Date: Apr 2010
Posts: 1,773
Received Thanks: 1,242
OMG DANKE xD

hast was gut ^^
HackTec is offline  
Old 11/01/2010, 10:12   #4
 
Blizard1's Avatar
 
elite*gold: 0
Join Date: May 2010
Posts: 22
Received Thanks: 0
Ich habe auch vor ein Login mit VB zu machen, aber ich will das ganze über eine mysql datenbank im Internet laufenlassen.

Geht das?
Und wenn Ja, wie?
Blizard1 is offline  
Old 11/01/2010, 13:25   #5
 
elite*gold: 0
Join Date: Mar 2009
Posts: 3,963
Received Thanks: 1,584
Quote:
Originally Posted by Blizard1 View Post
Ich habe auch vor ein Login mit VB zu machen, aber ich will das ganze über eine mysql datenbank im Internet laufenlassen.

Geht das?
Und wenn Ja, wie?
Ja das geht ..
Weiss leider nciht wie des geht abe rhier ist ein Tut
Algaten™ is offline  
Reply


Similar Threads Similar Threads
[TuT]GC Sig(More Advance!)
03/25/2010 - Grand Chase - 43 Replies
Jin The Fighter Jin Is our render for this tut :) Here's my New Tut :) This is more advance than the last time Here's The Result: http://i44.tinypic.com/35aj0x3.png --- I can't make more longer explanations Cause this Tut Will Give you The Answer. Things You Will Learn: -Gradient Map
AION Advance
03/22/2010 - Aion Private Server - 0 Replies
the best private server lagless friendly community active GM's great admin daily update server specs: Intel i5 750 12GB DDR3 1000Mbits/s soon to be--->Intel i7 860 2.80 GHz
[GREETINGS] AdVanCe ApI NeW YiR 2 ALL!
12/31/2009 - Grand Chase Hacks, Bots, Cheats & Exploits - 3 Replies
Happy happy new yir to all elitepvpers. !!! Here is some quote came from Henry Ward Beecher “Every man should be born again on the first day of January. Start with a fresh page. Take up one hole more in the buckle if necessary, or let down one, according to circumstances; but on the first of January let every man gird himself once more, with his face to the front, and take no interest in the things that were and are past.” Hope this quote helped every human in this website! have a...
i'm new here, can anyone there help me with this?? thanks in advance
08/03/2009 - Cabal Online - 1 Replies
i have a LVL 148 character with HONOR 8 ( BOX+4 suited ) can i use STACKING on this??? and what should i do, cause i cant unserstand what that SOMEONE#### is trying to say on his thread only i get the clicker and the CE link. can someone out there correct me with this
Need help and answers, thanks in advance!
12/22/2005 - Lineage 2 - 7 Replies
Hey there, I've been looking around on these forums for about 4 hours now(even though this is my first post). My post is regarding the status of bots of normal Lineage 2 servers. My questions are: Do any bots currently work on the normal L2 servers? If so, what bots? what versions? And how do I go about making them work?(please link me to a guide or copy and paste a guide here). Furthermore, I've been trying to use a volley of L2walker's, I changed the host IP address in...



All times are GMT +1. The time now is 07:02.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.