Sign in to follow this  
Followers 0
StatQuo

Ie.au3 - send form problem

3 posts in this topic

Hi!

I got form code like this:

<form method="post" action="/index.php?id=zaloguj" id="loginForm">
         <table>
         <tr>
         <!-- td>
             <img src="img/ikony/user.png" />
         </td -->
         <td>
             Login:
         </td>
         <td>
             &nbsp;
         </td>
         <td>
             <input type="text" name="xlogin" class="form width100" />
         </td>
         </tr>
         <tr>
         <!--td>
             <img src="img/ikony/key.png" />
         </td -->
         <td>
             Hasło:
         </td>
         <td>
             &nbsp;
         </td>
         <td>
             <input type="password" name="xhaslo" class="form width100" />
         </td>
         </tr>
        
         <tr>       
         <td>
            
         </td>
         <td>
             &nbsp;
         </td>
         <td>
             <input type="submit" value="Zaloguj" class="form" />
         </td>
         </tr>
         </table>
         </form>

And here is my code:

#include <IE.au3>
 

Global $login="mylogin"
Global $password="mypassword"

$oIE = _IECreate("http://smoki.nightwood.net/",0,1,1)
$oForm = _IEFormGetObjByName ($oIE, "loginForm")
$oText = _IEFormElementGetObjByName ($oForm, "xlogin")
_IEFormElementSetValue ($oText, $login)
$oText = _IEFormElementGetObjByName ($oForm, "xhaslo")
_IEFormElementSetValue ($oText, $password)
_IEFormSubmit($oForm,0)

Script working almost correctly, fill form fields, but dosen't send this form....

Pls. help.

Share this post


Link to post
Share on other sites



It's also a game. So double whammy. Good job!

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0