SendInput Function Question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm trying to find a code sample on how to use the SendInput Function to
simulate a mouse click on a button of another form. I've looked all over and
can't find one. Thanks.
 
Aam,

Why are you looking for that because there is a method button.click. However
maybe you mean a mouseclick in another program.

Cor
 
no . it was written as a console app in vb. i'm using a win app in vb.net. i
have seen samples on how to do this in vb, but nothing in vb.net. the
mouse_event function has been superseded in win nt/2000/xp. you are to use
SendInput function instead. i have used Google to search SendInput in Vb.net
and have noticed the question has been asked numerous times in many different
forums with no replies. it seems like this is a very tough question that many
people are having trouble with. thanks for any help.
 
aam said:
no . it was written as a console app in vb. i'm using a win app in vb.net.

All you have to do is to /copy/ the code from the console app and /paste/ it
to the Windows Forms app. What's the problem?!
have seen samples on how to do this in vb, but nothing in vb.net. the
mouse_event function has been superseded in win nt/2000/xp. you are to use
SendInput function instead.

'mouse_event' should still work...
 
Herfried, when i look up the mouse_event function in platform sdk of the
msdn library for visual studio .net 2003, it states in windows nt/2000/xp
that the mouse_event has been superseded and to use SendInput instead. i run
win xp pro edition and i can't figure out how the SendInput function works.
thanks.
 
aam said:
msdn library for visual studio .net 2003, it states in windows nt/2000/xp
that the mouse_event has been superseded and to use SendInput instead. i
run
win xp pro edition and i can't figure out how the SendInput function
works.

Well, all I wanted to say is that 'mouse_event' still works for
compatibility reasons on Windows XP Professional, so, if you don't find a
solution using 'SendInput', you can use 'mouse_event'.
 
Back
Top