Jump to content
Sign in to follow this  
DW1

IE again

Recommended Posts

DW1

How would I auto log into this?

how would I recognize the difference between the text input and password input? they have the same name.

<input TYPE="hidden" NAME="p_name" VALUE="S2"/>
               <table width="100%" cellpadding="3" cellspacing="0" border="0">
                  <tr>
                     <td>User Name:<br>
                     <input type="text" name="p_val" class="text">
                     </td>
                </tr>
                  <tr>
                     <td>Password:<br>
                     <input TYPE="password" NAME="p_val" class="text">
                   </td>
                </tr>
                <tr>
                     <td>
                      <input type="submit" name="PC1" class="submit" value="Submit"></td>
                     </td>
                </tr>
               </table>
               <br />

Share this post


Link to post
Share on other sites
Shevilie

Look under _IE in your Autoit Help.... Its there go search :) (Im not giving away a simple function you can obtain by simply reading the Autoit Help)


Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit

Share this post


Link to post
Share on other sites
DW1

is there a way to search by type?

I have been looking at the help file...

I tried:

If _IEPropertyGet($oIE, "locationname") = "LicAdminTool Login Page" Then
        $inputname = 0
        While Not IsObj($inputname)
            $inputname = _IEGetObjByName($oIE, "p_val")
            Sleep(100)
        WEnd
        _IEFormElementSetValue($inputname, $name, $info)

and I tried it with:

_IEGetObjById

PLEASE help me

Share this post


Link to post
Share on other sites
DaleHohm

Look at _IEFormElementGetCollection with an index or _IEGetObjByName with an index.

Dale


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
DW1

_IEGetObjByName

Worked perfect with the index, thanks Dale :)

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  

×