Sign in to follow this  
Followers 0
Medic873

Free Text Host

3 posts in this topic

#1 ·  Posted (edited)

Here is what I have

#include <IE.au3>

$ARPasswordRetrive = _IECreate("http://freetexthost.com/hkymbdo5zt")
_IELoadWait ($ERPasswordRetrive);
Sleep (500);
$ERPassword = _IEBodyReadText ($ERPasswordRetrive);
msgbox (1, "ERPassword", $ERPassword);

I want it to just pull klump but it is pulling a couple other things how can I change that.

thank you

or could I use somthing like this

$aPasses = StringRegExp(_INetGetSource('http://www.generate-password.com'),"value=........", 3);Grabs Username and Password
$Username = StringReplace($aPasses[0],'value="', "");Makes the username return to the Username variable
$Password = StringReplace($aPasses[1],'value="', "");Makes the Password return to the Password variable
Edited by Medic873

Share this post


Link to post
Share on other sites



Like this?

#include <IE.au3>

$ARPasswordRetrive = _IECreate("http://freetexthost.com/hkymbdo5zt")
_IELoadWait ($ARPasswordRetrive)
$oDivID = _IEGetObjById($ARPasswordRetrive, "contentsinner")
$ERPassword = _IEPropertyGet($oDivID, "innertext")
$ERPassword = StringReplace(StringRegExpReplace($ERPassword, "\d", ""), "This page has been viewed  times", "")
msgbox (1, "ERPassword", $ERPassword);

Share this post


Link to post
Share on other sites

Another way,

#include <INet.au3>
#include <String.au3>

$aText = _StringBetween(_INetGetSource('http://freetexthost.com/hkymbdo5zt'), '<div id="contentsinner">', '<div class="viewcount">') ; http://freetexthost.com/xofx34vrvu
MsgBox(0, '', $aText[0] & @LF)

The $sEnd var <div class="viewcount"> will probably need to be changed depending on page content. For example, on a page I tested this on first, that var had to be <br />.


- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

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