LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

suggestion for programmatically cancelling windows dialogs

Solved!
Go to solution

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

Message 1 of 5
(2,888 Views)

Hi Mathan,

if you have a popup, then you can get the window handle and simulate a button press.

 

Mike

Message 2 of 5
(2,876 Views)

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

0 Kudos
Message 3 of 5
(2,873 Views)

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.

Message 5 of 5
(2,806 Views)