Sign in to follow this  
Followers 0
nht3004

How to log in a sever with autoit?

4 posts in this topic

#1 ·  Posted (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 by nht3004

for(loop=0; loop<infinity; loop++) { alert('I love you'); }

Share this post


Link to post
Share on other sites



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 :blink:.

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'); }

Share this post


Link to post
Share on other sites

Please help me, this is the main script of my new project!


for(loop=0; loop<infinity; loop++) { alert('I love you'); }

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