I am a relative noob (so no flaming please) and have been trying to automate a modem configuration using AHK. I have also poured over these forums and can't seem to solve my initial little issue, and have also watched videos on using 'iWB2 Learner' to find attributes.
First a little bit of background: Why am I trying to do this? Because at work we have been tasked with configuring 4,000 Netgear DM200 modems for a national roll out. Unfortunately, these modems don't allow ssh or tftp, so we are stuck using the modem user interface to manually click through options and load the config file.
During this time I have had several issues trying to automate this due to the following:
1. Initially recorded macros as a script but had issues upon reuse due to maximized IE vs minimized (items weren't in the same place always)
2. Differing hardware / screen resolution (Laptops supplied by the project are different models, with different screen resolutions - clicks aren't at the same screen location)
3. Differing web application start (sometimes the first action is a login dialogue, other times it does not challenge for authentication and lands on the first web page)
My main stumbling block at the moment is that there is a 'Next' button in a frame at the bottom of the first page. It is a button without a label or on_click() attribute within the HTML and the button doesn't get focus using the TAB key.
I used 'iWB2 Learner' and have found it has the following attributes (Can't seem to upload a pic so I'll write it out):
iWB2 Learner :: <DIV> 
Title: NETGEAR Router DM200 (funny since it's a modem)
Frame #: IFRAME.1
Inner Text: document.write(bh_next_mark)Next
OuterHTML: <div class="buttons_words_div"
Over the last few days I have tried many variations of this, but the code I am currently trying to use is:
wb.document.GetElementsByTagName("DIV").Click() - (which doesn't seem to work).
Any help would be truly awesome and thank you in advance.
Get help with using AutoHotkey and its commands and hotkeys
4 posts • Page 1 of 1
if its in a frame maybe try this.
Thank you so much grimboto. This worked like a charm.
Who is online
Users browsing this forum: Bing [Bot], Google [Bot], Hellbent and 26 guests