Jump to content

Automate Internet Explorer Menu selections


TonyV
 Share

Recommended Posts

Can someone show me some example code to do the following simple task:

Select IE Menu item "Favorites->Organize Favorites..."

or

Select IE Menu item "Tools->Internet Options..."

or any other IE menu combination without using Send() keys or location-based mouseclicks.

I've searched the forums and looked over the IE.au3 functions but most of those functions deal with browser contents and not the IE application user interface. I would like to be able to mimick/automate, using AutoIt, what an end user can do using the IE UI.

I would like to be able to use something like this

WinMenuSelectItem("Microsoft Internet Explorer", "", "F&avorites", "&Organize favorites...")

but WinMenuSelectItem() doesn't work on IE becuase IE uses a Toolbar for it's menu bar. Is there a ToolbarMenuSelectItem that will work for IE?

This should be a very simple task to automate but I have not seen anyone post simple code to do this.

Any help with this would be much appreciated.

Thanks.

Link to comment
Share on other sites

Also:

Shellexecute("http://www.autoitscript.com")
Sleep(6000)
Send("{ALT}{RIGHT}{RIGHT}{RIGHT}{DOWN}{DOWN}{DOWN}{ENTER}")

is that what you want?

Thanks for the reply. I would like a simple one line command for selecting IE menus but not using Send() or screen position clicks.

I'm going through the code in the previous response links and it looks like they may have some examples I can use but it looks a lot more complicated than I had expected.

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