Hi to all,
How was it done in VB.Net to click a buuton of another application? The external application has no keyboard shortcut.
Thanks in advance.
Printable View
Hi to all,
How was it done in VB.Net to click a buuton of another application? The external application has no keyboard shortcut.
Thanks in advance.
If you search for this it has been asked many times (I have seen VB 6 code for this). You should find plenty of examples in the API forum. It shouldn't be hard to convert it to .Net.
Perhaps you could use sendkeys to sene a spacebar. That presses a button. you might have to use Tab to select the button first. And don't forget to select the other app.
You could use the APIs like manavo11 said, it would just be unmanaged code in .net but should be ok. Lookup FindWindow,
FindWindowEx, and SendMessage :)
Thanks Guys especiallly to johnmon2. I didn't know that spacebar would simulate a click in the keyboard ;-)
Milliuon thanks guys.