ElFer Posted February 22, 2009 Share Posted February 22, 2009 (edited) Hi, i got this in a au3 file, and works perfectMouseMove(100, 100)MouseDown ("RIGHT")MouseUp("RIGHT")But i got this in VB.net 2008, the mouse move but the click never downPublic 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 SubEnd ClassThanks for any help! Edited February 22, 2009 by ElFer Link to comment Share on other sites More sharing options...
ElFer Posted February 22, 2009 Author Share Posted February 22, 2009 Hi, i got this in a au3 file, and works perfectMouseMove(100, 100)MouseDown ("RIGHT")MouseUp("RIGHT")But i got this in VB.net 2008, the mouse move but the click never downPublic 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 SubEnd ClassThanks for any help!Problem with v3.3.0.0, version v3.2.12.1 works perfect!!!! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now