与其他应用程序交互(例如点击按钮) [英] Interacting with other applications (like clicking a button)

查看:154
本文介绍了与其他应用程序交互(例如点击按钮)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想自动化工作很多重复的任务和这个小问题难住我了。

I'm trying to automate many repetitive tasks at work and this small problem got me stumped.

我们正在使用的打印出标签的网上订单的应用程序,过程是这样的。

We are using an application for printing out labels for online-orders, the process is like this.


  1. 点击的顺序

  2. 查看订单详细信息并点击完成

  3. 计划为5秒计算

  4. 确认要打印在标签

  5. 标签打印大功告成

在忙碌的日子,我们得走线槽这个过程中超过500个订单,因为这个任务会消耗大量的,因为第3步中的无用时间的用户能够点击打印按钮之前要等待这些5秒钟。比方说,我们有500个订单,这是500次5秒,这是大约40分钟。整个发送过程花费2个小时,所有的时间,所以33%是因为人等着点击按钮丢失。

On busy days we gotta go trough this process for over 500 orders, because this task consumes a lot of useless time because of step 3. The user has to wait those 5 seconds before being able to click the Print button. Let's say we have 500 orders, that's 500 times 5 seconds, that's about 40 minutes. The entire sending process costs 2 hours, so 33% of all time is lost because of people waiting to click the button.

我试图找到一种方式来自动化步骤4中,使用户可以在完成步骤2之后

I'm trying to find a way to automate step 4 so users can stop interacting with the application after completing step 2.

那么,有没有使用C#点击来自不同的应用程序的另一种形式的一个按钮的方式?的事件有当确认屏幕上弹出来触发。请注意,这确认屏幕不是默认的Windows打印对话框,但应用程序的一部分,所以没有用preferences搞乱。

So is there a way using C# to click a button in another form from a different application? The event has to trigger when the confirmation screen pops up. Note that this confirmation screen is not the default windows printing dialog, but a part of the application, so no messing with the preferences.

推荐答案

我觉得你应该看看UI脚本工具像的 AutoIt的的AutoHotkey ,而不是写你自己的。

I think you should look into the UI scripting tools like AutoIt and AutoHotkey instead of writing your own.

这篇关于与其他应用程序交互(例如点击按钮)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆