Jump to content

_IEFormGetObjByName


yucatan
 Share

Recommended Posts

Hello Guys i'm writing a script to click on some links here is the html code

Here is the screenshot

<TR>
          <TD vAlign=top><A 
            href="http://www.moneymiljonair.nl/login/read_mail.php?id=2707" 
            target=_blank>ton, verdien €1,25 per aangemelde vriend!</A> </TD>
          <TD vAlign=top>5</TD>
          <TD vAlign=top>Nee</TD></TR>
        <TR>
          <TD vAlign=top colSpan=3>
            <HR>
          </TD></TR>
        <TR>
          <TD vAlign=top><A 
            href="http://www.moneymiljonair.nl/login/read_mail.php?id=2693" 
            target=_blank>ton, win een 600 euro VVV Irischeque!</A> </TD>
          <TD vAlign=top>5</TD>
          <TD vAlign=top>Nee</TD></TR>
        <TR>
          <TD vAlign=top colSpan=3>
            <HR>
          </TD></TR>
        <TR>
          <TD vAlign=top><A 
            href="http://www.moneymiljonair.nl/login/read_mail.php?id=2712" 
            target=_blank>Welkomstbonus tot 50 euro!</A> </TD>
          <TD vAlign=top>4</TD>
          <TD vAlign=top>Nee</TD></TR>
        <TR>
          <TD vAlign=top colSpan=3>
            <HR>
          </TD></TR>
        <TR>
          <TD vAlign=top><A 
            href="http://www.moneymiljonair.nl/login/read_mail.php?id=2719" 
            target=_blank>Doe mee met de Wat vindt Nederland Quiz en WIN!</A> 
</TD>
          <TD vAlign=top>4</TD>
          <TD vAlign=top>Nee</TD></TR>
        <TR>
          <TD vAlign=top colSpan=3>
            <HR>
          </TD></TR>
        <TR>
          <TD vAlign=top><A 
            href="http://www.moneymiljonair.nl/login/read_mail.php?id=2717" 
            target=_blank>Geef je mening en ontvang 25.000 parels!</A> </TD>
          <TD vAlign=top>3</TD>
          <TD vAlign=top>Nee</TD></TR>
        <TR>
          <TD vAlign=top colSpan=3>
            <HR>
          </TD></TR>
        <TR>
          <TD vAlign=top><A 
            href="http://www.moneymiljonair.nl/login/read_mail.php?id=2704" 
            target=_blank>Wint u de Jackpot van 14 miljoen euro?</A> </TD>
          <TD vAlign=top>3</TD>
          <TD vAlign=top>Nee</TD></TR>
        <TR>
          <TD vAlign=top colSpan=3>
            <HR>
          </TD></TR>
        <TR>
          <TD vAlign=top><A 
            href="http://www.moneymiljonair.nl/login/read_mail.php?id=2715" 
            target=_blank>Win GRATIS boodschappen bij uw supermarkt!</A> </TD>
          <TD vAlign=top>3</TD>
          <TD vAlign=top>Nee</TD></TR>
        <TR>
          <TD vAlign=top colSpan=3>
            <HR>
          </TD></TR>
        <TR>
          <TD vAlign=top><A 
            href="http://www.moneymiljonair.nl/login/read_mail.php?id=2703" 
            target=_blank>Bonus: gratis 20 euro speelgeld + 5.000 parels!</A> 
</TD>
          <TD vAlign=top>2</TD>
          <TD vAlign=top>Nee</TD></TR>
        <TR>
          <TD vAlign=top colSpan=3>
            <HR>
          </TD></TR>
        <TR>
          <TD vAlign=top><A 
            href="http://www.moneymiljonair.nl/login/read_mail.php?id=2701" 
            target=_blank>Is het jouw Lucky Day ton?</A> </TD>
          <TD vAlign=top>2</TD>
          <TD vAlign=top>Nee</TD></TR>
        <TR>
          <TD vAlign=top colSpan=3>
            <HR>
          </TD></TR>
        <TR>
          <TD vAlign=top><A 
            href="http://www.moneymiljonair.nl/login/read_mail.php?id=2705" 
            target=_blank>ton, win een reis naar Parijs!</A> </TD>
          <TD vAlign=top>2</TD>
          <TD vAlign=top>Nee</TD></TR>
        <TR>
          <TD vAlign=top colSpan=3>
            <HR>
          </TD></TR>
        <TR>
          <TD vAlign=top><A 
            href="http://www.moneymiljonair.nl/login/read_mail.php?id=2664" 
            target=_blank>ton, bestel nu een GRATIS spandoek!</A> </TD>
          <TD vAlign=top>1</TD>
          <TD vAlign=top>Nee</TD></TR>
        <TR>
          <TD vAlign=top colSpan=3>
            <HR>
          </TD></TR>
        <TR>
          <TD vAlign=top><A 
            href="http://www.moneymiljonair.nl/login/read_mail.php?id=2687" 
            target=_blank>Boek nu de goedkoopste vliegtickets op 
            CheapTickets.nl!</A> </TD>
          <TD vAlign=top>1</TD>
          <TD vAlign=top>Nee</TD></TR>
        <TR>
          <TD vAlign=top colSpan=3>
            <HR>
          </TD></TR>
        <TR>
          <TD vAlign=top><A 
            href="http://www.moneymiljonair.nl/login/read_mail.php?id=2679" 
            target=_blank>ton, pak jij die parels?</A> </TD>
          <TD vAlign=top>1</TD>
          <TD vAlign=top>Nee</TD></TR></TBODY></TABLE><BR></DIV></TD>

every day there are coming new links on the page.

i want the script to klik the the first link

then i get on a page here is a sample how it looks like

bgColor=white><SPAN style="FONT: 13px arial">Ontvang direct 
                  2.500 parels door te klikken op de knop 'parels innen' 
                  onderaan deze e-mail.<BR><BR>
                  <TABLE id=Table_01 height=694 cellSpacing=0 cellPadding=0 
                  width=500 border=0>
                    <TBODY>
                    <TR>
                      <TD><A 
                        href="http://www.moneymiljonair.nl/am.php?i=50452565f2&c=n27072a530d" 
                        target=_blank><IMG style="DISPLAY: block" height=231 
                        src="MoneyMiljonair  Sparen en Besparen_bestanden/1.gif" 
                        width=500 border=0></A></TD></TR>

that button need to be clikked then go back to the start klik the second link and so on until all the 10 links are clikked can somebody help me on this?

Link to comment
Share on other sites

ik begrijp dat de kans zeer zeker aanwezig is dat het niet legaal is maar dat is nog altijd mijn eigen verantwoordelijkheid.

How can i detect the status of the "Heeft gelezen" is a "Ja" or a "Nee" ?

because if i have clicked the first the status of "Heeft gelezen" changes to "Ja" so then the script only needs to click the second.

Edited by yucatan
Link to comment
Share on other sites

ik begrijp dat de kans zeer zeker aanwezig is dat het niet legaal is maar dat is nog altijd mijn eigen verantwoordelijkheid.

How can i detect the status of the "Heeft gelezen" is a "Ja" or a "Nee" ?

because if i have clicked the first the status of "Heeft gelezen" changes to "Ja" so then the script only needs to click the second.

somebody?

Link to comment
Share on other sites

You show HTML, but no AutoIt code. What have you tried?

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

Link to comment
Share on other sites

#include <IE.au3>
$oIE = _IECreate ("https://www.moneymiljonair.nl/")
$oForm = _IEFormGetObjByName ($oIE, "loginform")
$oUsername = _IEFormElementGetObjByName($oForm, 'login_username')
$oPW = _IEFormElementGetObjByName($oForm, 'login_password')
_IEFormElementSetValue ($oUsername, "myusername")
_IEFormElementSetValue ($oPW, "mypassword")
_IEFormSubmit ($oForm)
_IELinkClickByIndex ($oIE, 9)

this is what i have now.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...