How to click a button using a batch file?

batch-file

Solution

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.

Problem

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(); ```

Original source