nht3004 Posted July 17, 2010 Posted July 17, 2010 (edited) Hi guys, I wonder how to connect to a website with AutoIt I've tried the way that I searched in this forum but it didnt work! Here is what I found, I want to send a form to an PHP site and get back the source code (or just the information to confirm that the login success!) $src=_INetGetSource("http://matrixinc.comze.com/login.php&username=something&password=someotherthing");Just example FileWrite(@ScriptDir&"\trial.txt",$src); I mean the way to submit a form and receive code back ^^! And if this has been discussed before, please excuse me, because I've never worked on something like that so I just made up some keywords to search T__T THanks guys in advanced! Edited July 17, 2010 by nht3004 for(loop=0; loop<infinity; loop++) { alert('I love you'); }
somdcomputerguy Posted July 17, 2010 Posted July 17, 2010 Try this, #include <INet.au3> FileWrite(@ScriptDir & "\trial.txt", _INetGetSource("http://matrixinc.comze.com/")) If FileExists("trial.txt") Then Run("notepad trial.txt") - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change.
nht3004 Posted July 18, 2010 Author Posted July 18, 2010 Try this, #include <INet.au3> FileWrite(@ScriptDir & "\trial.txt", _INetGetSource("http://matrixinc.comze.com/")) If FileExists("trial.txt") Then Run("notepad trial.txt") Thanks, but I mean to submit a form to a website and the problem is I can't login if I just simply go to the link http://matrixinc.comze.com/mail.php&id=something&password=someotherthing . A little explain in HTML: <form name='logIn' method='GET' target='mail.php'> <input name='id'><input name='password'> </form> All I want to do is submit that form using autoit and get the source code back! for(loop=0; loop<infinity; loop++) { alert('I love you'); }
nht3004 Posted July 19, 2010 Author Posted July 19, 2010 Please help me, this is the main script of my new project! for(loop=0; loop<infinity; loop++) { alert('I love you'); }
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