amatris1992 Posted April 3, 2012 Posted April 3, 2012 hey guys so im Trying to make a macro, in vb2010, i can Send keys fine with AU3_Send(1, 0) or AU3_Send(a, 0) for example. but how do i send a mouse Click? thanks for the help.
amatris1992 Posted April 3, 2012 Author Posted April 3, 2012 i have TriedPublic Class MainPublic 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 IntegerPublic Declare Sub AU3_MouseUp Lib "AutoItX3.dll" (Optional ByVal szButton As String = "LEFT") and thisAU3_MouseDown("RIGHT")AU3_MouseUp("RIGHT")but it does not send the mouse Click still?
Laymanball Posted May 17, 2012 Posted May 17, 2012 Add reference AutoItX3.dll. For Vb.net and Imports AutoItX3Lib. Write code.. Dim Au3 As New AutoItX3. My Sample Script Download: VistaDesktopIconsChangerForXp.au3 (Com,Doc and Bin only) http://www.4shared.com/rar/NMHYL5Igba/VistaDesktopIconsChangerForXp_.html VistaDesktopIconsChangerForXp.exe (Resources) http://www.4shared.com/rar/nzs7Mb1gba/VistaDesktopIconsChangerForXp_.html
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