如何使用批处理文件点击一个按钮? [英] How to click a button using a batch file?

查看:2466
本文介绍了如何使用批处理文件点击一个按钮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在一个名为节肢动物Adobe AIR应用程序点击一个名为保存按钮。我可以用此推出的bat文件的应用程序:

  CD C:\\ Program Files文件\\节肢动物
启动/ W Arthropod.exe

在它弹出有一个保存在UI按钮。我怎样才能用bat文件点击?

我在读这一点:

http://www.ehow.com/how_7788761_preSS-按钮,批量file.html

这表明如何模拟点击,在MS Word文件的菜单和其他选项卡,但一个人如何做到这一点的任何其他按钮?

P.S。按钮上的文字是保存这是唯一的唯一标识符我能想到的该按钮。有什么是一批在那里我可以这样说(伪code):

  $('按钮[文本=保存]')点击()。


解决方案

您可以使用 AutoIt的做到这一点。您可以生成一个脚本,可以点击保存按钮,然后从一个批处理文件调用生成的EXE文件。

I need to click a button called "save" in a Adobe Air application called Arthropod. I can launch the app in the bat file with this:

cd C:\Program Files\Arthropod
start /w Arthropod.exe

Once it pops up there is a save button on the UI. How can I click it with the bat file?

I was reading this:

http://www.ehow.com/how_7788761_press-buttons-batch-file.html

which showed how to simulate clicks to the file menu and other tabs in MS Word but how does one do this on any other button?

P.S. the text on the button is "Save" that's the only unique identifier I can think of for that button. Is there anything is batch where I can say something like (pseudo code):

$('button[text="Save"]').click();

解决方案

You can use AutoIt to do this. You can generate a script that would click on the "Save" button, and call the generated EXE file from a batch file.

这篇关于如何使用批处理文件点击一个按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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