le 02-12-2008 10:18 AM
02-13-2008 02:20 AM - modifié 02-13-2008 02:20 AM
02-13-2008 02:39 AM - modifié 02-13-2008 02:40 AM
02-13-2008 04:41 AM - modifié 02-13-2008 04:44 AM
Hi,
I developped for you an example, just download the zip file attached and open the VI named Main Executable.vi (others are some sub VIs I developped for this example).
So, this example shows you how to open an executable, in this case this is the Windows' Calculator. After that, it just sends some Windows Messages thanks to the Windows API to the buttons 9, +, 5 and = to perform the operation 9 + 5. And of course, the calculator performs this operation.
Best regards,
le 02-13-2008 06:08 AM
le 02-13-2008 08:16 AM
le 02-13-2008 08:30 AM
Hi,
I advise you to download this software : Windows Spy it is a usefull freeware software which allows you to watch at programs and get the handles, the type of controls, etc... You'll be able to see wether the commands Open and Close are "BUTTON" types or note.
Moreover, if you can send your application I'll be able to have a look by myself.
Finally, to close your application, you should send some Windows' Messages to the application using the VI Send Message I built for you. The message might be WM_QUIT, or WM_CLOSE. I'll keep you informed.
Best regards,
02-13-2008 08:42 AM - modifié 02-13-2008 08:44 AM
le 02-13-2008 10:03 AM
le 02-14-2008 02:11 AM
Hi,
Maybe you should put a "Wait" function just before the Send Click Vi.
Regards,