Jump to content

Automatic button click on an inactive html page


Recommended Posts

Hi,

I am trying to write an autoit script so that it will automatically click on a button on an html page.I think I can do this using firefox automation(using FF.au3). But, I want it to happen without opening the html file in a browser. Means ,It should happen in the background.Please give me an idea. Thanks

Link to comment
Share on other sites

Hi,

I want to use this feature for a desktop calculator app. I don have any abuse intentions. see my code below, the code is clicking the button only when the html is active.

Run("C:Program FilesMozilla Firefoxfirefox.exe test.html")

WinWaitActive("[CLASS:MozillaWindowClass]")

Send("^a")

Send("^c")

Send("{TAB}")

Send("{ENTER}")

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...