Joe_w Posted August 11, 2005 Share Posted August 11, 2005 Ok i am wanting to do something like a bot How can i make a program where the program needs info from the user...here is an example: I want he program to run open a WoW then input a p/w and username the problem is that the p/w and username would change with each user.... so i want the bot to check files like .cfg files example of what i want it to be like: FILENAME General config: username: <user puts name here> P/W:<user p/w here> Click Delay:<here> I want the user to be able to change it to their needs so when the yrun the .exe it will check all this stuff and then run what it finds...any help? i assume its dll stuff Link to comment Share on other sites More sharing options...
Wb-FreeKill Posted August 11, 2005 Share Posted August 11, 2005 Sounds to me like the only thing you need is an ini file witch look something liek this: [Userinfo] Username = User Password = PW Delay = 100 But should the bot automaticly input these options or what? Link to comment Share on other sites More sharing options...
Joe_w Posted August 11, 2005 Author Share Posted August 11, 2005 the bot should like... read the file then input w/e the user typed after P/W Username so that it can log them in Link to comment Share on other sites More sharing options...
Wb-FreeKill Posted August 11, 2005 Share Posted August 11, 2005 the bot should like...read the file then input w/e the user typed after P/WUsernameso that it can log them in<{POST_SNAPBACK}>hmm - not quite getting what you want, sry...But to read from an ini file, use "IniRead"To send txt to a window or input that is active, use "ClipPut"Else try explain me what you want, im not quite getting it Link to comment Share on other sites More sharing options...
Joe_w Posted August 11, 2005 Author Share Posted August 11, 2005 OK this is ment for a game which requires u to log on with a username and p/w(password) Since i want this program to be used by anyone who needs it it has to be able to be editded for each persons p/w and U/N(username). So can i put a file called Config that the user can input his p/w and u/n and have autoit open that file and see his info so that it can put his information into the u/n and p/w boxs to log him in. Link to comment Share on other sites More sharing options...
Zithen Posted August 11, 2005 Share Posted August 11, 2005 (edited) easiest way to do this is with a ini as Wb-FreeKill has said and the example he showed on how the file should be writin. what you will need to do is just when they run the program have it check if this is the first time this program has been ran, just do a check if the config file is present, if not have it execute a function to have them enter there username and password in a prompt, use iniwrite to take the input and put it in the ini file, then use iniread to gather that information to send later. Read up on iniwite and iniread, the examples in the help file will show you exactly what you will need to do code wisesorry if i steped on you toes wb-freekillOK this is ment for a game which requires u to log on with a username and p/w(password)Since i want this program to be used by anyone who needs it it has to be able to be editded for each persons p/w and U/N(username).So can i put a file called Config that the user can input his p/w and u/n and have autoit open that file and see his info so that it can put his information into the u/n and p/w boxs to log him in.<{POST_SNAPBACK}> Edited August 11, 2005 by Zithen Link to comment Share on other sites More sharing options...
Joe_w Posted August 11, 2005 Author Share Posted August 11, 2005 thank you i will the code u gave before web was good sorry i was really sleepy 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