Sign in to follow this  
Followers 0
jimmy999

div value

17 posts in this topic

hi , i have this code

$oIE = _IECreate("mywebsite")
$HTML = _IEBodyReadHTML($oIE)
MsgBox(0,"",HTML_Div($HTML,2))
Func HTML_Div($HTML,$DIV_INDEX)
Local $DIV = _StringBetween($HTML,"<b>","</span>")
If IsArray($DIV) Then
     If ($DIV_INDEX-1) <= UBound($DIV)-1 Then
         Return $DIV[$DIV_INDEX-1]
     Else
         Return "Out_of_range"
     EndIf
Else
     Return "No_div_found"
EndIf
EndFunc

this is value i whant to read from html source :

</span></a>: <b> <span class="style1">$0.8871</span></b>

Posted Image

this is the result:

hwo i can read only : $0.8871 with out: <span class="style1">?

sorry for my bad english...thanks in advance.

Share this post


Link to post
Share on other sites



Can you provide us the web site where you try to get the value?

Br,

UEZ


Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Can you provide us the web site where you try to get the value?

Br,

UEZ

sure, https://members.mybrowsercash.com/index.php?p=0 but need to login to see de value...

this is te html source:

<br /> Account Balance<a class=info href="#">[?]<span>Your Account Balance is your current Accounts Value (This Balance is NOT in real time. It can take up to 2 hours after viewing or clicking ads to see a change in your account balance). This is what is currently accrued by your account. Your Account Balance must reach $20 before you can Withdraw Funds to your Alertpay or Paypal account which you specify when withdrawing funds. Your Account Balance can also be transfered to your Purchase Balance to purchase Advertising or Rent Referrals Shares.</span></a>: <b> <span class="style1">$0.8871</span></b>

Edited by jimmy999

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Ok, then try this here:

Func HTML_Div($HTML,$DIV_INDEX)
    Local $DIV = StringRegExpReplace($HTML,'.*">($d+.d+)<.*', '$1')
    If Not IsFloat(StringMid($DIV,2)*1) Then Return "No_div_found"
    Return $DIV
EndFunc
Edited by UEZ

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Share this post


Link to post
Share on other sites

not work :( no div found.

the value $0.8871 is variable.

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

Can you debug the $DIV output in the function and post the result here please?

Because with the html output you have provided it should work.

Br,

UEZ

Edited by UEZ

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Share this post


Link to post
Share on other sites

Can you debug the $DIV output in the function and post the result here please?

Because with the html output you have provided it should work.

Br,

UEZ

hwo i can do this? with autoit debugger?

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

Just debug to console:

Func HTML_Div($HTML,$DIV_INDEX)
    Local $DIV = StringRegExpReplace($HTML,'.*">($d+.d+)<.*', '$1')
    ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : $DIV = ' & $DIV & @crlf & '>Error code: ' & @error & @crlf) ;### Debug Console
    If Not IsFloat(StringMid($DIV,2)*1) Then Return "No_div_found"
    Return $DIV
EndFunc

Br,

UEZ

Edited by UEZ

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Share this post


Link to post
Share on other sites

>"C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "C:\Users\Jimmy\Desktop\AutoIt v3 Script nou.au3" /UserParams
+>18:31:52 Starting AutoIt3Wrapper v.2.1.0.8 Environment(Language:0409 Keyboard:00010418 OS:WIN_7/Service Pack 1 CPU:X64 OS:X86)
>Running AU3Check (1.54.22.0) from:C:\Program Files\AutoIt3
+>18:31:52 AU3Check ended.rc:0
>Running:(3.3.8.1):C:\Program Files\AutoIt3\autoit3.exe "C:\Users\Jimmy\Desktop\AutoIt v3 Script nou.au3"
@@ Debug(9) : $DIV =

<table style="margin-top: 0px;" width="1000" align="center">
<tbody><tr>
<td><table border="0" cellSpacing="0" cellPadding="0" width="968" align="center">
     <tbody><tr>
     <td width="16">&nbsp;</td>
     <td width="328">
<a href="https://members.mybrowsercash.com/index.php?p=1"><img border="0" src="images/logo.gif" width="328" height="71"></a><br>
         <center><font size="1" face="Tahoma"><b>Current Server Time: 2012-07-30 11:31</b></font></center></td>
     <td width="320">
<div style="border: 0px currentColor; margin-left: 10px;" id="topad" align="left">
<font size="2" face="Tahoma">Membership Level: <b>
     Free    </b>
         [<a href="https://members.mybrowsercash.com/index.php?p=8">Upgrade</a>]
<br>
$0.9106
     </font> <br>
$16.00
[<a href="https://members.mybrowsercash.com/index.php?p=21#fundsadd">add funds</a>]<br>
Account ID:
272186 Sponsor ID:
196529<br>
<a id="displayText" href="javascript:toggle();">Show Details</a>
<div style="background: rgb(255, 255, 255); border: 2px solid rgb(34, 102, 170); float: left; display: none; position: absolute; z-index: 10000;" id="toggleText">
<table width="600">
<tbody><tr>
<td style="padding: 5px; font-family: Tahoma, Geneva, sans-serif;" width="350">
<font color="blue" size="2" face="Tahoma"><b> Rented Referrals<br>
     </b></font> <font size="2" face="Tahoma">Qualified Today: <a class="info" href="#">[?]<span>This shows if you qualify for todays Rented Referral payout. You have until approximately 9:30PMEST every day to click at least 10 ads. These ads can be from Slide Ups Or The Clicks For Cash Page. Please note Gold Members automatically Qualify Daily. If you have clicked more than 10 ads in Clicks for Cash, please wait up to 15 minutes for the status to change.</span></a><b> Yes </b><br>
     </font> <font size="2" face="Tahoma">Active Rented Referrals: <a class="info" href="#">[?]<span>This is the current number of Active Rented Referrals you have. Expired Referrals will not show up here. You can see expired information at the bottom of the Purchase Rented Referrals Page.</span></a> <b>
     5   </b><br>
Partial Referrals<a class="info" href="#">[?]<span>Partial Referrals are earned when you Complete Offers for Partial Referrals (located above under Make Money). <br>
<br>
5 Partial Referrals=1 Full Rented Referral Block. Once you reach 5 partial Referrals they will be converted by the system into 1 full Referral Block which will earn you money on a daily basis for 75 days.</span></a>: <b>
0</b> <br>
Rental Earnings<a class="info" href="#">[?]<span>Rental Earnings is the total amount you have earned from Rented Referrals. These funds are immediately added to your account balance. This is simply a running total of those funds.</span></a>:<font color="green" size="2" face="Tahoma"><b> $27.4900</b></font><br>
Rental Purchase Commissions<a class="info" href="#">[?]<span>Rental Purchase Commission is the amount you have earned from your direct and Sub referral rental purchases. Please note these funds are added directly to your account balance when you receive them. This is a running total of those earnings.</span></a>: <font color="green" size="2" face="Tahoma"><b>$0.00</b></font><br>
<font size="2" face="Tahoma"><a href="https://members.mybrowsercash.com/index.php?p=17">Purchase Rented Referrals</a></font></font></td>

<td style="padding: 5px; font-family: Tahoma, Geneva, sans-serif;" width="250">
<font color="blue" size="2" face="Tahoma"><b>Direct Referrals<br>
     </b></font>
<font size="2" face="Tahoma"><font size="2" face="Tahoma"><font size="2" face="Tahoma"> Direct Referrals:<b>
6</b> <br>
Referral Income <a class="info" href="#">[?]<span>Referral Income includes Referral and Sub-Referral income from the last 7 days of Direct Referral Ad Views/Clicks and Position Purchases. Click Direct Referral Details and Then The Details Link Next To Each Referral To Get More Detailed Information and Past Earnings. Sub referral reports are currently not available but add to this (such as when they purchase shares) which is added directly to your account balance, but may be more than your account balance.</span></a>: <font color="green"><b>$0</b> </font></font></font></font>   
         <p><font size="2" face="Tahoma">MyBrowserCash Guides<a class="info" href="#">[?]<span>These Guides will help you start using MyBrowserCash to make the most money possible. New users should read the Quick Start Guide before starting. As you learn the system you will see how we have created multiple ways to Generate Revenue from Work or Home!</span></a><br>
             <font size="2" face="Tahoma"><font color="#000000" size="2" face="Tahoma"><a href="https://members.mybrowsercash.com/index.php?p=9">New User Quick Start Guide</a></font></font></font>        
     </p></td>
     </tr>
</tbody></table>
</div>
<div style="border: 0px currentColor; margin-left: 10px;" id="topad" align="left">
</div></font></div></td>
     <td width="304"><div style="border: 0px currentColor; margin-left: 10px;" id="topad" align="left"><font size="2" face="Tahoma">Total Members:
         <b> 412,803</b>
         <br>
         Paid:
         <span class="style1">       $1,350,072.11       </span>
         <br>
         Moved To Purchase: <span class="style1">$2,706,291.62       </span>
         <br>
         Members Online:
<b>      5,805</b>
         </font></div></td>
     </tr>
</tbody></table>
</td>
</tr>
</tbody></table>

<table style="margin-top: 0px;" width="1000" align="center">
<tbody><tr align="center">
<td style="color: rgb(255, 255, 255); font-family: Arial, Helvetica, sans-serif; font-weight: bold;">
<div style="margin-left: 10px; align: center;">
     <ul id="menu">
         <img style="float: left;" alt="" src="images/menu/menu_left2.png">
         <li><a href="https://members.mybrowsercash.com/index.php?p=1">Home</a>
         </li>
         <li><a href="https://members.mybrowsercash.com/index.php?p=13">Account</a>
             <ul id="help">
                 <li>
                     <img class="corner_inset_left" alt="" src="images/menu/corner_inset_left.png">
                     <a href="https://members.mybrowsercash.com/index.php?p=13">Ad Settings</a>
                     <img class="corner_inset_right" alt="" src="images/menu/corner_inset_right.png">
                 </li>
                 <li><a href="https://members.mybrowsercash.com/index.php?p=4">Change Account Info</a></li>
                 <li><a href="https://members.mybrowsercash.com/index.php?p=30">View Deposits</a></li>
     <li><a href="https://members.mybrowsercash.com/index.php?p=28">View Withdrawals</a></li>

    
     <li><a href="https://members.mybrowsercash.com/index.php?p=8">Upgrade Account</a></li>
                    
             </ul>
         </li>
<li><a href="https://members.mybrowsercash.com/index.php?p=21#fundsadd">Funding</a>
             <ul id="help">
                 <li>
                     <img class="corner_inset_left" alt="" src="images/menu/corner_inset_left.png">
                     <a href="https://members.mybrowsercash.com/index.php?p=21#fundsadd">Add Funds</a>
                     <img class="corner_inset_right" alt="" src="images/menu/corner_inset_right.png">
                 </li>
                 <li><a href="/?p=21#transfer">Transfer Funds</a></li>
<li><a href="https://members.mybrowsercash.com/index.php?p=19">Withdraw Funds</a></li>
             </ul>
         </li>

<li><a href="#">Earn Money</a>
             <ul id="help">
                 <li>
                     <img class="corner_inset_left" alt="" src="images/menu/corner_inset_left.png">
                     <a href="https://members.mybrowsercash.com/index.php?p=2">Install MyBrowserCash™</a>
                     <img class="corner_inset_right" alt="" src="images/menu/corner_inset_right.png">
                 </li>
     <li><a href="https://members.mybrowsercash.com/index.php?p=29">Clicks For Cash</a></li>
     <li><a href="https://members.mybrowsercash.com/index.php?p=16">Offers For Cash</a></li>
     <li><a href="https://members.mybrowsercash.com/index.php?p=31">Tasks For Cash</a></li>
     <li><a href="https://members.mybrowsercash.com/index.php?p=11">Earn Partial Rentals</a></li>

     </ul>
         </li>


<li><a href="#">Referrals</a>
             <ul id="help">
                 <li>
                     <img class="corner_inset_left" alt="" src="images/menu/corner_inset_left.png">
                     <a href="https://members.mybrowsercash.com/index.php?p=22">Direct Referral Details</a>
                     <img class="corner_inset_right" alt="" src="images/menu/corner_inset_right.png">
                 </li>
                 <li><a href="https://members.mybrowsercash.com/index.php?p=17">Rent Referrals</a></li>
     <li><a href="https://members.mybrowsercash.com/index.php?p=6">Rented Referral Details</a></li>
<li><a href="https://members.mybrowsercash.com/buysell" target="_blank">Buy/Sell Marketplace</a></li>
<li><a href="https://members.mybrowsercash.com/index.php?p=5">Referral Tools</a></li>

                
             </ul>
         </li>
<li><a href="https://members.mybrowsercash.com/helpdesk">Support</a>
             <ul id="help">
                 <li>
                     <img class="corner_inset_left" alt="" src="images/menu/corner_inset_left.png">
                     <a href="/helpdesk/knowledgebase.php" target="_blank">Knowledgebase</a>
                     <img class="corner_inset_right" alt="" src="images/menu/corner_inset_right.png">
                 </li>
                 <li><a href="https://members.mybrowsercash.com/helpdesk" target="_blank">Submit New Ticket</a></li>
     <li><a href="https://members.mybrowsercash.com/helpdesk/ticket.php" target="_blank">View Tickets</a></li>
             </ul>
         </li>

<li><a href="https://members.mybrowsercash.com/index.php?p=20">Advertising</a>
             <ul id="help">
                 <li>
                     <img class="corner_inset_left" alt="" src="images/menu/corner_inset_left.png">
                     <a href="https://members.mybrowsercash.com/index.php?p=27">Create Text Ad</a>
                     <img class="corner_inset_right" alt="" src="images/menu/corner_inset_right.png">
                 </li>
<li><a href="https://members.mybrowsercash.com/index.php?p=7">Create Banner Ad</a>
<li><a href="https://members.mybrowsercash.com/index.php?p=35">Create Featured Ad</a>
<li><a href="https://members.mybrowsercash.com/index.php?p=20">Advanced Advertising</a>
<li><a href="http://www.regexnetwork.com" target="_blank">RegexNetwork Login</a>
<li><a href="https://members.mybrowsercash.com/index.php?p=23">Move Funds To Regex</a>

             </li></ul>
</li>
<li><a href="https://members.mybrowsercash.com/index.php?p=33">Messaging</a></li>
<li><a href="http://www.mybrowsercash.com/proofs.php" target="_blank">Payment Proofs</a> </li>
         <li><a href="/index.php?access=logout">Logout</a> </li>
    
        
     </ul>
     <img style="float: left;" alt="" src="images/menu/menu_right2.png">
</div>
<div style="clear: both; float: none;"></div>

</td>
</tr>
</tbody></table>
<hr width="900">
<table border="0" cellSpacing="0" cellPadding="0" width="900" align="center">
<tbody><tr>
<td><table border="0" cellSpacing="0" cellPadding="0" width="1011">
     <tbody><tr>
         <td style="padding-top: 12px; padding-bottom: 10px; font-family: Tahoma, Geneva, sans-serif;" vAlign="top" width="839">
<p><center> <a href="http://members.mybrowsercash.com/bclk.php?aid=MTM2Mw==&amp;v=c81e728d9d4c2f636f067f89cc14862c" target="_blank"><img src="http://members.mybrowsercash.com/bannerads/41121-728x90-5.png"></a><br><br></center><p></p>
<p align="center"><b><font color="#cc0000">NEW To MyBrowserCash?</font> <br><a href="https://members.mybrowsercash.com/index.php?p=9">Read The Quick Start Guide To Start Making Cash Quickly</a></b></p>

<p align="center"><b><font color="#cc0000" size="2" face="Tahoma"> Congratulations You Qualified For The Daily Bonus Pool Payout! </font></b><br></p>

         <p align="center">      <div style="border: 1px currentColor;" align="center">  </div>
         <center>
             <br>
                        
            
            
<div id="container">    
     <table style="margin: 0px auto;" border="0" width="80%">
     <tbody><tr>
         <td><b>Date</b></td>
         <td><b>Earnings</b></td>
     </tr>
     <tr><td><b>Today</b></td><td><font color="green"><b>$0.0572</b></font></td></tr>    <tr style="background: rgb(255, 255, 204);">
         <td>2012-07-29</td>
         <td>$1.2835</td>
     </tr>
             <tr>
         <td>2012-07-28</td>
         <td>$0.5958</td>
     </tr>
             <tr style="background: rgb(255, 255, 204);">
         <td>2012-07-27</td>
         <td>$1.1978</td>
     </tr>
             <tr>
         <td>2012-07-26</td>
         <td>$0.672</td>
     </tr>
             <tr style="background: rgb(255, 255, 204);">
         <td>2012-07-25</td>
         <td>$0.6281</td>
     </tr>
             <tr>
         <td>2012-07-24</td>
         <td>$0.6804</td>
     </tr>
             </tbody></table>
</div>
             <br>
             <p></p>
         </center>
         <p align="center">
To Do: <a href="https://members.mybrowsercash.com/index.php?p=8"><b>Get An Instant $5 and Earn More Money!</b></a><br><br>       </p><center><font size="2" face="Tahoma">*Todays Earnings are NOT in real time, Ad clicks can take up to 10 minutes to credit. <br>
         Please refresh this page if you have clicked several ads and it's been more than 10 minutes. <br>
         Earnings are estimated and not finalized until verified.</font></center>
<br><center><a href="http://members.mybrowsercash.com/bclk.php?aid=ODA2&amp;v=c4ca4238a0b923820dcc509a6f75849b" target="_blank"><img src="http://members.mybrowsercash.com/bannerads/160996-468x60-1.gif"></a></center></td>
     </tr>


     </tbody></table>
<br>

<table style="z-index: 99999;" cellSpacing="0" cellPadding="0" width="800" align="center">
<tbody><tr><td>Featured Ads: <font size="1">[ <a href="https://members.mybrowsercash.com/index.php?p=35">Your Ad Here</a> ]</font></td></tr></tbody></table>
<table border="1" cellSpacing="0" borderColor="#333333" cellPadding="0" width="800" align="center">
<tbody><tr>
<td>
<table cellPadding="3" align="center">
<tbody><tr></tr><tr><td><font size="2" face="arial"> <b><a href="http://members.mybrowsercash.com/fclk.php?aid=Mjg0" target="_blank">top 1mlm in the world</a></b></font> </td><td><font size="2" face="arial"> <b><a href="http://members.mybrowsercash.com/fclk.php?aid=Mjgz" target="_blank">Bidify??????</a></b></font> </td><td><font size="2" face="arial"> <b><a href="http://members.mybrowsercash.com/fclk.php?aid=Mjgy" target="_blank">How to make money?</a></b></font> </td><td><font size="2" face="arial"> <b><a href="http://members.mybrowsercash.com/fclk.php?aid=Mjgx" target="_blank">Paypal Approved HYIP Site</a></b></font> </td><td><font size="2" face="arial"> <b><a href="http://members.mybrowsercash.com/fclk.php?aid=Mjgw" target="_blank">Best PTC Sites Of 2012</a></b></font> </td><td><font size="2" face="arial"> <b><a href="http://members.mybrowsercash.com/fclk.php?aid=Mjc5" target="_blank">Get online. Get paid...!</a></b></font> </td></tr><tr><td><font size="2" face="arial"> <b><a href="http://members.mybrowsercash.com/fclk.php?aid=Mjc4" target="_blank">CashConnection.com</a></b></font> </td><td><font size="2" face="arial"> <b><a href="http://members.mybrowsercash.com/fclk.php?aid=Mjc3" target="_blank">Help a child in need</a></b></font> </td><td><font size="2" face="arial"> <b><a href="http://members.mybrowsercash.com/fclk.php?aid=Mjc2" target="_blank">Binary Affiliates</a></b></font> </td><td><font size="2" face="arial"> <b><a href="http://members.mybrowsercash.com/fclk.php?aid=Mjc1" target="_blank">Rapid Autom.Traffic Syst</a></b></font> </td><td><font size="2" face="arial"> <b><a href="http://members.mybrowsercash.com/fclk.php?aid=Mjc0" target="_blank">Make $$$ Today !!</a></b></font> </td><td><font size="2" face="arial"> <b><a href="http://members.mybrowsercash.com/fclk.php?aid=Mjcz" target="_blank">new sustainable ptc</a></b></font> </td></tr><tr><td><font size="2" face="arial"> <b><a href="http://members.mybrowsercash.com/fclk.php?aid=Mjcy" target="_blank">New Superpay Easy Cash</a></b></font> </td><td><font size="2" face="arial"> <b><a href="http://members.mybrowsercash.com/fclk.php?aid=Mjcx" target="_blank">SimplyReallyLiveFree!</a></b></font> </td><td><font size="2" face="arial"> <b><a href="http://members.mybrowsercash.com/fclk.php?aid=Mjcw" target="_blank">European Traffic Boost</a></b></font> </td><td><font size="2" face="arial"> <b><a href="http://members.mybrowsercash.com/fclk.php?aid=MjY5" target="_blank">EARNDAILY TRIPLE UR MONEY</a></b></font> </td><td><font size="2" face="arial"> <b><a href="http://members.mybrowsercash.com/fclk.php?aid=MjY4" target="_blank">Join &amp; Earn $100 now</a></b></font> </td><td><font size="2" face="arial"> <b><a href="http://members.mybrowsercash.com/fclk.php?aid=MjY3" target="_blank">Triplerproject.com</a></b></font> </td></tr><tr><td><font size="2" face="arial"> <b><a href="http://members.mybrowsercash.com/fclk.php?aid=MjY2" target="_blank">Earn 18% Daily</a></b></font> </td><td><font size="2" face="arial"> <b><a href="http://members.mybrowsercash.com/fclk.php?aid=MjY1" target="_blank">Work at Home earn daily</a></b></font> </td><td><font size="2" face="arial"> <b><a href="http://members.mybrowsercash.com/fclk.php?aid=MjYz" target="_blank">Work at Home earn daily</a></b></font> </td><td><font size="2" face="arial"> <b><a href="http://members.mybrowsercash.com/fclk.php?aid=MjY0" target="_blank">Free 500Bids now</a></b></font> </td><td><font size="2" face="arial"> <b><a href="http://members.mybrowsercash.com/fclk.php?aid=MjYy" target="_blank">Yahuweh is God’s name</a></b></font> </td><td><font size="2" face="arial"> <b><a href="http://members.mybrowsercash.com/fclk.php?aid=MjYx" target="_blank">EGOPAY 1% ref commission</a></b></font> </td></tr><tr><td><font size="2" face="arial"> <b><a href="http://members.mybrowsercash.com/fclk.php?aid=MjYw" target="_blank">NO Sponsoring Required</a></b></font> </td><td><font size="2" face="arial"> <b><a href="http://members.mybrowsercash.com/fclk.php?aid=MjU5" target="_blank">$WIN MONEY! It`s FREE!$</a></b></font> </td><td><font size="2" face="arial"> <b><a href="http://members.mybrowsercash.com/fclk.php?aid=MjU4" target="_blank">GET PAID FOR FREE</a></b></font> </td><td><font size="2" face="arial"> <b><a href="http://members.mybrowsercash.com/fclk.php?aid=MjU1" target="_blank">25 Euro Free Cash!!</a></b></font> </td><td><font size="2" face="arial"> <b><a href="http://members.mybrowsercash.com/fclk.php?aid=MjU2" target="_blank">KISnP - 4.5% for 50 Days</a></b></font> </td><td><font size="2" face="arial"> <b><a href="http://members.mybrowsercash.com/fclk.php?aid=MjU3" target="_blank">Do u Want many $25?</a></b></font> </td></tr><tr><td><font size="2" face="arial"> <b><a href="http://members.mybrowsercash.com/fclk.php?aid=MjUz" target="_blank">Free Liberty Cash!</a></b></font> </td><td><font size="2" face="arial"> <b><a href="http://members.mybrowsercash.com/fclk.php?aid=MjU0" target="_blank">Work at Home earn daily</a></b></font> </td><td><font size="2" face="arial"> <b><a href="http://members.mybrowsercash.com/fclk.php?aid=MjUy" target="_blank">Top 1 MLM In The World</a></b></font> </td><td><font size="2" face="arial"> <b><a href="http://members.mybrowsercash.com/fclk.php?aid=MjUw" target="_blank">Earning 2% Daily</a></b></font> </td><td><font size="2" face="arial"> <b><a href="http://members.mybrowsercash.com/fclk.php?aid=MjQ3" target="_blank">Start To Earning Daily</a></b></font> </td><td><font size="2" face="arial"> <b><a href="http://members.mybrowsercash.com/fclk.php?aid=MjUx" target="_blank">Explode Website Traffic</a></b></font> </td></tr></tbody></table></td>
</tr>
</tbody></table>
<table border="0" cellSpacing="0" cellPadding="5" width="870" align="center">
<tbody><tr>
<td><hr width="400"></td>
</tr>
<!-- <tr>
<td><font face="Tahoma">Paypal Email:
             <font size="1">[<a href="http://www.mybrowsercash.com/members/index.php?p=4">change</a>]</font></font></td>
</tr>
<tr>
<td><font face="Tahoma">Installation ID:
     {667CD0AD-838B-4F40-B2E0-0752F5D2D33E} </font></td>
</tr>-->
<tr>
<td><font face="Tahoma">Your Referral URL To Be Used In Emails:
     <label>
     <input name="textfield" value=" http://www.pswtracker.com/index.php?refid=272186" size="65" type="text">
     </label>
</font>
     <p><font face="Tahoma">Your Referral URL To Be Used On Websites/Blogs Etc:
         <label>
         <input name="textfield2" value=" http://www.mybrowsercash.com/index.php?refid=272186" size="65" type="text">
         </label>
     </font></p>
     <p><font face="Tahoma"><font size="2" face="Tahoma"><b>HOW TO TRACK WHERE YOUR DIRECT REFERRALS COME FROM :</b> Want to track where your referrals come from? Just add &amp;src=YOURTRAFFICSOURCE to your referral URL<br>
         ex: http://www.pswtracker.com/index.php?refid=272186&amp;src=trafficsource1 <br>
                 http://www.mybrowsercash.com/index.php?refid=272186&amp;src=trafficsource1</font>
    
     </font></p>
     <font face="Tahoma">
     <label>     </label>
     </font></td>
</tr>
</tbody></table>
<center>
<font size="2" face="Tahoma"><br>
Copyright 2011 MyBrowserCash.com &amp; Digital Paper Products, Inc<br>
4142 Lakeville Rd Ste 2 #333, Geneseo NY 14454 - 1-866-520-0118 <br>
<a href="../tos.php" target="_blank">Terms of Use</a> | <a href="../tos.php" target="_blank">Disclaimer/Member Agreement</a> | <a href="refund_policy.php" target="_blank">Refund Policy</a> | <a href="../pp.php">Privacy Policy</a> | <a href="../eula.php">EULA</a></font>
</center>
<p></p>
</td>
</tr>
</tbody></table>
<p>&nbsp;</p>


>Error code: 0
+>18:32:00 AutoIT3.exe ended.rc:0
>Exit code: 0 Time: 8.635

Share this post


Link to post
Share on other sites

Ok, do you want to extract all your earnings or which value of the output exactly?

Br,

UEZ


Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Share this post


Link to post
Share on other sites

#11 ·  Posted (edited)

Ok, do you want to extract all your earnings or which value of the output exactly?

Br,

UEZ

only the $0.9106 value, u find this in the outuput.

Edited by jimmy999

Share this post


Link to post
Share on other sites

Try this:

Func HTML_Div($HTML,$DIV_INDEX)
    Local $aDIV = StringRegExp($HTML,'</a>]s*<br>s*($d+.d+)s*</font> <br>', 3)
    If @error Then Return "No_div_found"
    Return $aDIV[0]
EndFunc

Br,

UEZ


Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Share this post


Link to post
Share on other sites

If you provide the xpath, i'll show you how to drill into the html, and select the node.text...no need to worry about the regexp/stringmid


IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.

Share this post


Link to post
Share on other sites

If you only want the first instance of the //tbody//font, then this will work:

$oXML=ObjCreate("Microsoft.XMLDOM")
$stest = @DesktopDir & "xml1.xml"
; $oXML.LoadXML('<p>String i want to geta<span class="street">String i want to getb</span></p>') ; load text of the DOM object
$oXML.load($stest) ; load file of xml
$result = $oXML.selectSingleNode('//tbody//font')
ConsoleWrite ( $result.text & @CRLF)

Else you will have to use .selectnodes, which creates an object you will have to loop through


IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.

Share this post


Link to post
Share on other sites

Try this:

Func HTML_Div($HTML,$DIV_INDEX)
Local $aDIV = StringRegExp($HTML,'</a>]\s*<br>\s*(\$\d+\.\d+)\s*</font> <br>', 3)
If @error Then Return "No_div_found"
Return $aDIV[0]
EndFunc

Br,

UEZ

idem no div found.

i tried a diferente whay and work fine..

this is the code:

$oIE = _IECreate("https://members.mybrowsercash.com/index.php?p=1")
$HTML = _IEBodyReadHTML($oIE)
$result = _StringBetween($HTML, '">', '</span')
$result2 = $result[1]
MsgBox(0, "Title", $result2)

tnx guys

Share this post


Link to post
Share on other sites

Again, provide the xpath, and i'll show you how to get it.

not sure if this is what you need:

$oXML=ObjCreate("Microsoft.XMLDOM")
$stest = @DesktopDir & "xml1.xml" ; if you save the HTML to text file OR:
;$oXML.LoadXML($html)
$oXML.load($stest) ; load file of xml

$result = $oXML.selectSingleNode('//tbody//td[//b[.="Today"]]//font')
ConsoleWrite ( $result.text & @CRLF)

that grabs Today's value:

<tr>

<td>

<b>Today</b>

</td>

<td>

<font color="green">

<b>$0.0572</b>

</font>

</td>

</tr>


IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.

Share this post


Link to post
Share on other sites

have you tried getting the inner text. (objectname.innerText )

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  
Followers 0