Jump to content



Photo

Ie.au3 - send form problem


  • This topic is locked This topic is locked
2 replies to this topic

#1 StatQuo

StatQuo

    Seeker

  • Active Members
  • 9 posts

Posted 25 July 2012 - 01:14 PM

Hi!
I got form code like this:
Plain Text         
<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("<a href='http://smoki.nightwood.net/%22,0,1,1' class='bbc_url' title='External link' rel='nofollow external'>http://smoki.nightwood.net/",0,1,1</a>) $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.







#2 JLogan3o13

JLogan3o13

    Down to 98

  • MVPs
  • 2,110 posts

Posted 25 July 2012 - 02:00 PM

Hi, StatQuo. Please take a few moments to read through the forum rules, particularly the bit about automating site logins. You will see why you will not receive any help on this subject.


http://www.autoitscript.com/forum/forum-2/announcement-13-forum-rules/
J.I spent 10 minutes reviewing code and thinking "What kind of drugs is this guy on?" before realizing it was something I wrote.My Scripts:Include Source with Compiled Script, Disk Maintenance for Windows XP, "Deal-A-Day" Sites, SCCM 2007 Front End, Windows Firewall UDF

#3 Valik

Valik

    Former developer.

  • Active Members
  • PipPipPipPipPipPip
  • 18,879 posts

Posted 25 July 2012 - 04:46 PM

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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users