_TyIzaeL_ Posted January 7, 2006 Posted January 7, 2006 (edited) This will be the third script I've ever made when completed. It is a script that uses a .ini file to input a user's name and password and sign them in automatically to Battle.Net using Diablo II. However, when it comes time to put in the variable, the program puts in the default "Not_Found" text in place of the person's Account Name and Password. I believe the problem may be in the formatting of my .ini file, but after experimenting with several different ways of trying it, nothing has changed. I need someone to check my coding if possible. The coding for the script: ; ---------------------------------------------------------------------------- ; AutoIt Version: 3.1.0 ; Author: Austin Brashear <alloy45224@gmail.com> ; Script Function: ; Allows you to log-in to your Diablo II account quickly and automatically. ; ---------------------------------------------------------------------------- #NoTrayIcon Run("C:\Program Files\Diablo II\Diablo II.exe") WinWaitActive("Diablo II") Sleep(3500) MouseClick("left",512,384,3) Sleep(500) MouseClick("left",402,352,1,0) Sleep(2000) MouseClick("left",396,335,1,0) Dim $AccountName, $Password $DiabloIIAccountName = IniRead("C:/Program Files/Diablo II Auto-Login/Settings.ini", "AccountName", "Name", "") $Password = IniRead("C:/Program Files/Diablo II Auto-Login/Settings.ini", "Password", "Password", "") Send("{CTRLDOWN}a{CTRLUP}{DELETE}") Send($DiabloIIAccountName, 1) Send("{TAB}") Send($Password, 1) Send("{ENTER}") Here is the code inside the .ini file: [AccountName] Name=TyIzael [Password] Password=xxx All help is greatly appreciated! Edited January 7, 2006 by _TyIzaeL_
Thatsgreat2345 Posted January 7, 2006 Posted January 7, 2006 why make it read a .ini why not just make a GUI i find it alot easier
Valuater Posted January 7, 2006 Posted January 7, 2006 maybe $DiabloIIAccountName = IniRead("C:\Program Files\Diablo II Auto-Login\Settings.ini", "AccountName", "Name", "") $Password = IniRead("C:\Program Files\Diablo II Auto-Login\Settings.ini", "Password", "Password", "") 8)
cdkid Posted January 7, 2006 Posted January 7, 2006 oh and for d2 u gotta assign the working directory or else u'll get a bad vesions error Run("C:\program files\diablo II\diablo II.exe","C:\program files\diablo II") --just a tip AutoIt Console written in C#. Write au3 code right at the console :D_FileWriteToLineWrite to a specific line in a file.My UDF Libraries: MySQL UDF Library version 1.6 MySQL Database UDF's for AutoItI have stopped updating the MySQL thread above, all future updates will be on my SVN. The svn location is:kan2.sytes.net/publicsvn/mysqlnote: This will still be available, but due to my new job, and school hours, am no longer developing this udf.My business: www.hirethebrain.com Hire The Brain HireTheBrain.com Computer Consulting, Design, Assembly and RepairOh no! I've commited Scriptocide!
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