Sign in to follow this  
Followers 0
Resurrection

Some Questions

3 posts in this topic

I just started with AutoIt, I am making an auto-login for a game but I can't figure out some stuff.

My questions how do I make it read from ini and fill it in the game.

Like my scripts need to read the name and password and fill it.

This is my code for that:

Sleep(5000)

MouseClick("left", ???, ???, 1, 2) < click on the username box.

Send("Username") < fill this in but how can I make it that it reads from the ini file?

My second question is that I got the same click code but it needs to read from the ini what server to click on.

So if I got like Server=1 in my ini how do make sure it clicks on server 1 and if it says Server=2 how do I make sure it clicks on server 2?

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

I just started with AutoIt, I am making an auto-login for a game but I can't figure out some stuff.

My questions how do I make it read from ini and fill it in the game.

Like my scripts need to read the name and password and fill it.

This is my code for that:

Sleep(5000)

MouseClick("left", ???, ???, 1, 2) < click on the username box.

Send("Username") < fill this in but how can I make it that it reads from the ini file?

My second question is that I got the same click code but it needs to read from the ini what server to click on.

So if I got like Server=1 in my ini how do make sure it clicks on server 1 and if it says Server=2 how do I make sure it clicks on server 2?

Try looking these few things up:

IniRead

And if you are making an input box for them if the ini doesn't exist or if they haven't yet put in a username password, download Koda and look up

IniWrite
GUICtrlRead

[edit] BTW, when I say lookup I mean in the helpfile[/edit]

Edited by Anonymouse

children may smile; the wise ponder- Dr. Holmes of Hardvard Medical School on an Ether BingeLove Makes The World Go Round?So does five shots of tequila. What's your point?[quote name='Valik' date='Jun 5 2008, 05:13 PM']wraithdu, 24 hours. Said I have a bad attitude, just driving the point home with a ban.[/quote]This is classic. :)

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

I know have this but it isn't working:

if Iniread( "AL.ini", "Server=", "1", "" ) Then
    Sleep(2500)
    MouseClick("left", 512, 125, 1, 2)
    EndIf

My ini looks like this:

Username=

Password=

Server=1

Edited by Resurrection

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