Jump to content

Reading text using AutoIt


Recommended Posts

Hi AutoIt Geeks!!

I though am not very new to Autoit but am new to this forum.I am facing trouble using AutoIt to get my work done.

I would highly appreciate if any one could help me out.

What I need to automate is :

Open Internet exporer-> Go to Tools->Open the Internet Options->then go to advanced tab ( I have automated till this step).

Now what I need to do is to find out which options under the advanced tab is checked (i.e enabled or checkbox or radio button is in enabled state) and read the text for which the option is set and store it into any array.

Can any one help me out in automation this part.

Thanks in advance!!

Sachin

Link to comment
Share on other sites

Easiest method to open IE Internet Options:

ShellExecute("inetcpl.cpl")

Once its open and active, use the _GUICtrlTab** functions to navigate to the right tab. (see the Help file)

Edited by Ascend4nt
Link to comment
Share on other sites

I get an error executing ShellExecute("inetcpl.cpl") - no program associated

typing inetcpl.cpl in the RUN box works.I have XP SP2 and IE7.

@sachin3079

All the advanced settings / checkboxes are in the registry .Just need to find the keys and read them.

Link to comment
Share on other sites

Another option:

Run("rundll32.exe shell32.dll,Control_RunDLL inetcpl.cpl")

or if you know the tab index (depends on the version of IE):

Run("rundll32.exe shell32.dll,Control_RunDLL inetcpl.cpl,,6")

And if that doesn't work, this is the last way I can think of:

Run("control.exe inetcpl.cpl")
Link to comment
Share on other sites

I get an error executing ShellExecute("inetcpl.cpl") - no program associated

typing inetcpl.cpl in the RUN box works.I have XP SP2 and IE7.

@sachin3079

All the advanced settings / checkboxes are in the registry .Just need to find the keys and read them.

I knew about the registry as one of the alternatuive ways of getting it done, but dont want to use that as then I will have to check in local machine and users directory in registry. and depending upon the users prevelages thing settings may change.

If there is any other ways of doing it please do let me know.

Thanks,

Sachin

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...