Jump to content
Sign in to follow this  
sachin3079

Reading text using AutoIt

Recommended Posts

sachin3079

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

Share this post


Link to post
Share on other sites
IHaveLeftTheForum

I wanna see your script, so plz share here it will be better to help you!

Share this post


Link to post
Share on other sites
sachin3079

I wanna see your script, so plz share here it will be better to help you!

Hi

Here is the script.

Send("#r")

Send("http://google.com")

Send("{Enter}")

Sleep(3000)

Send("!{t}")

Send("{o}")

WinWaitActive("Internet Options")

Send("+{TAB}")

Send("{RIght 6}")

Now here after this I want to read the text/checkbox status.

Share this post


Link to post
Share on other sites
Ascend4nt

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

Share this post


Link to post
Share on other sites
Juvigy

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.

Share this post


Link to post
Share on other sites
Ascend4nt

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")

Share this post


Link to post
Share on other sites
sachin3079

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

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.