Adblock breaks this site

human mouse?

Discussion in 'Programming General' started by elborio, Jan 14, 2008.

  1. elborio

    elborio Guest

    Referrals:
    0
    human mouse?

    I made this script
    just a button and timer are needed

    if you need to go ohter points at screen use
    :
    humanmouse(x,y)

    hope it works dont know for sure

    Code:
    Dim mousex As Integer
        Dim mousey As Integer
        Dim x As Integer
        Dim y As Integer
        Function humanmouse(ByVal x As Integer, ByVal y As Integer) As Boolean
            mousex = Control.MousePosition.X.ToString
            mousey = Control.MousePosition.Y.ToString
            If Control.MousePosition <> New Point(x, y) Then
                If x < mousex Then
                    mousex = mousex - 5 - (Rnd() * 5)
                ElseIf x > mousex Then
                    mousex = mousex + 5 - (Rnd() * 5)
                End If
                If y < mousey Then
                    mousey = mousey - 5 - (Rnd() * 5)
                ElseIf y > mousey Then
                    mousey = mousey + 5 - (Rnd() * 5)
                End If
            Else
                Timer1.Enabled = False
            End If
        End Function
        Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
            humanmouse(300, 400)
            Lbl1.Text = Control.MousePosition.ToString
            Windows.Forms.Cursor.Position = New Point(mousex, mousey)
            Timer1.Interval = 5 + (Rnd() * 5)
    
        End Sub
     
  2. selling pin$

    selling pin$ Member

    Joined:
    Jun 16, 2007
    Posts:
    59
    Referrals:
    0
    Sythe Gold:
    0
    human mouse?

    finaaly ty
     
  3. Terrankiller

    Terrankiller Ex-Administrator
    Retired Administrator Visual Basic Programmers

    Joined:
    May 7, 2005
    Posts:
    1,286
    Referrals:
    1
    Sythe Gold:
    1
    human mouse?

    There are so many things wrong with that.
     
< random number gen | Mouse Recorder help >


 
 
Adblock breaks this site