04-22-2009 12:56 AM
For some reason, while an utility that is downloading the firmware into a device needs to be stopped. When using Taskkill in forced mode from command prompt (suggested here in this forum in some other thread), the application closed but the device is not responding proper (that is the device displays the firmware download is still in progress).To avoid this when using taskkill in normal mode (not forced mode), the utility popups display messages like "Are you sure you want to download the process? Press Yes or No.". Then when we press yes it again displays a user message, "The firmware download process aborted by the user.". The utility that downloads the firmware can be redesigned to avoid such popups but it is somewhat tedious process and is not feasible at this point of time. Taskkill in forced mode also left out.
In order to do some automation, only option is to use taskkill in normal mode and will have to avoid "popup" dialog boxes.
Thanks in advance for all the suggestions,
Mathan
Solved! Go to Solution.
04-22-2009 01:44 AM
Hi Mathan,
if you have a popup, then you can get the window handle and simulate a button press.
Mike
04-22-2009 01:48 AM
Dear Mike,
Nice to see your post. Thanks a lot. From one of your posts in other thread, i got the window handle. Could you please show me a way to simulate the button press of the external window dialog. thanks a lot
Mathan
04-22-2009 01:55 AM
Hi Mathan,
you can use PostMassage to send event.
See these links please
http://msdn.microsoft.com/en-us/library/bb775985(VS.85).aspx
http://msdn.microsoft.com/en-us/library/ms644944(VS.85).aspx
Mike
04-24-2009 12:29 AM
Dear Mike,
Thanks a lot for the wonderful links and prompt reply. Eventhough, mouse click event generation is quite simple, my utility best accepts keystrokes easily since the buttons needs to be clicked are highlighted by default. So, move window to top.vi and send key.vi solves the problem. Thanks a lot again dear Mike.