Jump to content

Problem with MouseDown and MouseUp


ElFer
 Share

Recommended Posts

Hi, i got this in a au3 file, and works perfect

MouseMove(100, 100)

MouseDown ("RIGHT")

MouseUp("RIGHT")

But i got this in VB.net 2008, the mouse move but the click never down

Public Class Main

Public Declare Sub AU3_MouseDown Lib "AutoItX3.dll" (Optional ByVal szButton As String = "LEFT")

Public Declare Function AU3_MouseMove Lib "AutoItX3.dll" (ByVal nX As Integer, ByVal nY As Integer, ByVal nSpeed As Integer) As Integer

Public Declare Sub AU3_MouseUp Lib "AutoItX3.dll" (Optional ByVal szButton As String = "LEFT")

Private Sub Main_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

AU3_MouseMove(100, 100, 10)

AU3_MouseDown("RIGHT")

AU3_MouseUp("RIGHT")

End Sub

End Class

Thanks for any help!

Edited by ElFer
Link to comment
Share on other sites

Hi, i got this in a au3 file, and works perfect

MouseMove(100, 100)

MouseDown ("RIGHT")

MouseUp("RIGHT")

But i got this in VB.net 2008, the mouse move but the click never down

Public Class Main

Public Declare Sub AU3_MouseDown Lib "AutoItX3.dll" (Optional ByVal szButton As String = "LEFT")

Public Declare Function AU3_MouseMove Lib "AutoItX3.dll" (ByVal nX As Integer, ByVal nY As Integer, ByVal nSpeed As Integer) As Integer

Public Declare Sub AU3_MouseUp Lib "AutoItX3.dll" (Optional ByVal szButton As String = "LEFT")

Private Sub Main_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

AU3_MouseMove(100, 100, 10)

AU3_MouseDown("RIGHT")

AU3_MouseUp("RIGHT")

End Sub

End Class

Thanks for any help!

Problem with v3.3.0.0, version v3.2.12.1 works perfect!!!!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...