Jump to content

How to click a web button in already opened IE browser


Recommended Posts

Use the function _IEAttach to connect to the IE instance. Then you could use _IEGetObjById or _IEGetObjByName to get the object and _IEAction to click on the button. If it's a link or image you will find corresponding functions in the UDF too.

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

Click on the _IEAttach link in my previous post and you will find an example.

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

Hi,

Thank you very much for your help. Now I am able to get the Url of the already opened application. Now I want to click on a button which inside a web dialog box. how to handle the web dialog box. I am attaching the screen shot can you please help me out.

post-72080-0-61481000-1336142930_thumb.j

Link to comment
Share on other sites

Hi

I got the solution to click on the button which is inside the web dialog.

following is code is to click on the submit button:

#include <IE.au3>

Local $oIE = _IEAttach("Submit Job" , "embedded")

Local $oSubmit = _IEGetObjById($oIE, "LAWTBBUTTONundefined")

_IEAction($oSubmit, "click")

Now I want to run my script when my system starts and when ever it found "Submit Job" window open it should run the following code automatically

How to achieve is?

Regards,

Shankar L

Link to comment
Share on other sites

OK, you need to put forth some effort on your part. He are happy to help but...we are not a fast food place and just serve up code on demand. I suggest for you to read the help file and pay close attention to the section for IE:

http://www.autoitscript.com/autoit3/docs/libfunctions/IE%20Management.htm

edit: I posted this before you posted your code - Still, give the section I provided a link to a read. There are plenty of examples and you can quickly get the idea on how to do what you want to do.

Edited by Bellicus
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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...