Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27034

VS 2010 mouse button

$
0
0
Hi,

How can I send a click with my mouse in vb.net 2010?

the old way in vb6 isnt working

Code:

    Private Declare Sub mouse_event Lib "user32" (ByVal dwflags As Long, ByVal dx As Long, ByVal dy As Long, ByVal cbuttons As Long, ByVal dwextrainfo As Long)
    Private Const mouseclickup = 4
    Private Const mouseclickdown = 2

Code:

        '  mouse_event(mouseclickdown, 0, 0, 0, 0)
        '  mouse_event(mouseclickup, 0, 0, 0, 0)

who can help me out?

Viewing all articles
Browse latest Browse all 27034

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>