开发者

Tools/code to automatically click ok on dialogs

开发者 https://www.devze.com 2023-03-02 17:31 出处:网络
We have an \'enterprisey\' system with a scheduling component which gets floored if any dialogs come up. If any modal dialogs come up in the processes it is running, it gets \'paused\' and can\'t kick

We have an 'enterprisey' system with a scheduling component which gets floored if any dialogs come up. If any modal dialogs come up in the processes it is running, it gets 'paused' and can't kick off any new processes.

Excuse me a minute ...

*goes outside*

*laughs*

*cries*

*comes back*

.. ahem .开发者_Python百科.. so anyway we need some sort of tool/technique that can lurk in the background and automatically detect specific dialogs and click OK on them. Any recommendations?

The offending system is running in Windows XP.

(NB: changing the third-party-enterprisey system or making its developers sit on the naughty step until they improve it are not options in the short term)


From this similar question I found:

Buzof by Basta Computing

which did the trick.

There is also a product called DialogDevil which looked promising but didn't work in our situation for some reason.


AutoIT is absolutely perfect for this. You can use the tool to help identify the dialog, write your own simple code and distribute the "auto clicker" via exe. It lurks in the background by running from the task tray.


DialogDavil will require exact same parameters on your dialog (for which you want buttons to be autoclicked) every time that same dialog pops up. And thats why it didnt work for me in first pass. Then i changed the control file at the following path to remove the changing items (a text box text in my case) C:\Users\userName\AppData\Roaming\DAIR\DialogDevil\control.xml And then it worked like a charm. HTH,

0

精彩评论

暂无评论...
验证码 换一张
取 消