Jump to content
Sign in to follow this  

IE Focus

Recommended Posts

Hey everyone,

I think I have a hard question for you.

I have a web page that belongs to a pocket AP. To get it to change automatically when a user requests a new SSID (done with code by JCHD (thanks buddy), it needs to get the "FINISH" button on the bottom of the page clicked. Unfortunatley, there are two other buttons that are called NAME: action. When the "finish" button is clicked, it runs a CGI script that is named the same as the other buttons. I tried to bring focus on the button (_IELinkClickByText), but it won't find it. I have included a copy of the webpage for your reading pleasure.

How can I make this work?


WL-330gE Web Manager.htm

"so much work, so little brains..."

Share this post

Link to post
Share on other sites

Suggest using

$oFinish = _IETagnameGetCollection($oIE, "input", zero-based-index)

_IEAction($oFinish, "click")


Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Share this post

Link to post
Share on other sites

Thanks DaleHohm for your reply!

I am getting a wierd error though, have you seen this before:

M:\Scripts\EC4Marquee without SENDs.au3(290,55) : ERROR: syntax error
$oFinish = _IETagnameGetCollection($oIE, "input", zero-
M:\Scripts\EC4Marquee without SENDs.au3 - 1 error(s), 0 warning(s)

I do not know how to look for the answer?

"so much work, so little brains..."

Share this post

Link to post
Share on other sites

First, give yourself a serious face palm! :blink:

Now replace "zero-based-index" with the actual zero based index number of the element you want (i.e. 3, for the fourth "input" element).


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...