human mouse?

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

human mouse?
  1. Unread #1 - Jan 14, 2008 at 1:31 PM
  2. elborio
    Referrals:
    0

    elborio Guest

    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
     
  3. Unread #2 - Jan 20, 2008 at 7:54 AM
  4. selling pin$
    Joined:
    Jun 16, 2007
    Posts:
    59
    Referrals:
    0
    Sythe Gold:
    0

    selling pin$ Member

    human mouse?

    finaaly ty
     
  5. Unread #3 - Feb 6, 2008 at 5:37 PM
  6. Terrankiller
    Joined:
    May 7, 2005
    Posts:
    1,286
    Referrals:
    1
    Sythe Gold:
    1

    Terrankiller Ex-Administrator
    Retired Administrator Visual Basic Programmers

    human mouse?

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

Users viewing this thread
1 guest


 
 
Adblock breaks this site