Medic873 Posted February 9, 2011 Posted February 9, 2011 (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 February 9, 2011 by Medic873
StandardUser Posted February 9, 2011 Posted February 9, 2011 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);
somdcomputerguy Posted February 9, 2011 Posted February 9, 2011 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now