Medic873 Posted August 8, 2010 Share Posted August 8, 2010 Okay normally I dont have issues with somthing as basic as pulling text from a website but how can I pull the two passwords displayed on this page. $UsernameAndPassword = _IECreate("http://www.generate-password.com/") _IELoadWait ($UsernameAndPassword) there is my code obviously the url is www.generate-password.com/ thank in advance Link to comment Share on other sites More sharing options...
Sheik Posted August 8, 2010 Share Posted August 8, 2010 #include "IE.au3" #include "array.au3" $UsernameAndPassword = _IECreate("http://www.generate-password.com/") _IELoadWait ($UsernameAndPassword) $sText = _IEBodyReadHTML ($UsernameAndPassword) $pw=StringRegExp($sText,"value=........",3) _ArrayDisplay($pw) Link to comment Share on other sites More sharing options...
Medic873 Posted August 8, 2010 Author Share Posted August 8, 2010 Okay that is working great the only question I have to ask is now how can I make it minuse the Value= after it has pulled it.... thank you Link to comment Share on other sites More sharing options...
somdcomputerguy Posted August 8, 2010 Share Posted August 8, 2010 A spin from Sheik's code.. #include <INet.au3> $aPasses = StringRegExp(_INetGetSource('http://www.generate-password.com'),"value=........", 3) MsgBox(0, "Generated Passwords", @TAB & StringReplace($aPasses[0],'value="', "") & ' : ' & StringReplace($aPasses[1],'value="', "")) - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
Medic873 Posted August 8, 2010 Author Share Posted August 8, 2010 Hey thank you that code works perfect had to divide it up just a bit and get ride of the msgbox witch confused me a bit but now that I look back at it I dont know why lol brain freeze lol thank you Link to comment Share on other sites More sharing options...
somdcomputerguy Posted August 8, 2010 Share Posted August 8, 2010 Glad it worked out for you. - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
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