Resurrection Posted June 30, 2008 Share Posted June 30, 2008 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? Link to comment Share on other sites More sharing options...
Anonymouse Posted June 30, 2008 Share Posted June 30, 2008 (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 June 30, 2008 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. :) Link to comment Share on other sites More sharing options...
Resurrection Posted June 30, 2008 Author Share Posted June 30, 2008 (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 June 30, 2008 by Resurrection 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