Rosa Posted February 21, 2007 Posted February 21, 2007 Hello there, this is the first time I come accross a program like this. I would like to get some help on how to create an autoit file, so i can create names on diablo 2. Any help will be really appreciated ! Thanks, Rosa~
pjotterke Posted February 21, 2007 Posted February 21, 2007 do you mean Account names? Character names? Game Names? Please give some more info...
Rosa Posted February 21, 2007 Author Posted February 21, 2007 Hello there, this is the first time I come accross a program like this. I would like to get some help on how to create an autoit file, so i can create names on diablo 2. Any help will be really appreciated ! Thanks, Rosa~Firstly I would like to be able to create character names. If I could create account also, it would be nice ^^-So the script would do these actions :open d2, click on battle.net, write an account, write the pass, click enter, click new char, click on the barb, write a name (from a list i made), click enter, if choosen, click ok, if no, click new char, click on the barb, and on.
Shevilie Posted February 21, 2007 Posted February 21, 2007 I would think youøll have to look in mouseclick and mousemove.. have a look in the helpfile Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit
pjotterke Posted February 21, 2007 Posted February 21, 2007 i have made a script in d2 to to make some game names... i have done it with mouse clicks... But if i have to make it again then shut i make it with control ID ore something like that... But look first in the help files we al must configure some things out before we understand...
Rosa Posted February 21, 2007 Author Posted February 21, 2007 i have made a script in d2 to to make some game names...i have done it with mouse clicks...But if i have to make it again then shut i make it with control ID ore something like that...But look first in the help files we al must configure some things out before we understand...10-4 I will read~
pjotterke Posted February 21, 2007 Posted February 21, 2007 K, If i have time i will look to my old script maybe i go script something new for DII I will send it later to you...
pcdestroyer Posted February 21, 2007 Posted February 21, 2007 (edited) Oh gee I haven't been on the forums for such a long time nor have I worked with autoit at all in the last year or so, anyways back to the topic. What you're asking for is actually quite easy to achieve. Pixel recognition is easy to use with Diablo 2, take a look at the bot that i had made it should help you out.http://www.autoitscript.com/fileman/users/public/PcDeStRoYeR/index.htmlSome of the functions you might need would be:PixelGetColorMouseClickif, endiffunc, endfunc Edited February 21, 2007 by pcdestroyer
Rosa Posted February 21, 2007 Author Posted February 21, 2007 K,If i have time i will look to my old script maybe i go script something new for DIII will send it later to you...Okidoki ! I started my script ^^Oh gee I haven't been on the forums for such a long time nor have I worked with autoit at all in the last year or so, anyways back to the topic. What you're asking for is actually quite easy to achieve. Pixel recognition is easy to use with Diablo 2, take a look at the bot that i had made it should help you out.http://www.autoitscript.com/fileman/users/...oYeR/index.htmlThat`s nice thanks ! I looked at the edit, and I have some questionsCurrently, I am able to open diablo from the main directory.However, I am not able to add 3x mouseclick or add 3x send esc so I can go to the main menuI tried :Run("C:\Program Files\Diablo II\Diablo II.exe")WinWaitActive("D2Loader v1. 11b - Build On Nov 11 2005")Send("{ESC}")Send("{ESC}")Send("{ESC}")andRun("C:\Program Files\Diablo II\Diablo II.exe")WinWaitActive("D2Loader v1. 11b - Build On Nov 11 2005"); Double click at the current mouse posMouseClick("left")MouseClick("left")-It opens d2, but does not click or press esc :S
Rosa Posted February 22, 2007 Author Posted February 22, 2007 Back from university ! I read the 1/2 Any ideas ?
pcdestroyer Posted February 22, 2007 Posted February 22, 2007 mhm u have to activate the window first and since its not active the script stalls and at the WinWaitActive and waits until the window becomes active, and since it doesn't, it just doesn't execute anything beyond that line Try this Run("C:\Program Files\Diablo II\Diablo II.exe") WinActivate("D2Loader v1. 11b - Build On Nov 11 2005", "") WinWaitActive("D2Loader v1. 11b - Build On Nov 11 2005") Send("{ESC}") Send("{ESC}") Send("{ESC}") a small mistake can ruin everything
Rosa Posted February 22, 2007 Author Posted February 22, 2007 mhm u have to activate the window first and since its not active the script stalls and at the WinWaitActive and waits until the window becomes active, and since it doesn't, it just doesn't execute anything beyond that line Try this Run("C:\Program Files\Diablo II\Diablo II.exe") WinActivate("D2Loader v1. 11b - Build On Nov 11 2005", "") WinWaitActive("D2Loader v1. 11b - Build On Nov 11 2005") Send("{ESC}") Send("{ESC}") Send("{ESC}") a small mistake can ruin everything Hmm, yeah a small mistake can mess up the script I guess ! However, I tried : Run("C:\Program Files\Diablo II\Diablo II.exe") WinActivate("D2Loader v1. 11b - Build On Nov 11 2005", "") WinWaitActive("D2Loader v1. 11b - Build On Nov 11 2005") Send("{ESC}") Send("{ESC}") Send("{ESC}") And I still have the same problem, it opens d2, but it does not press esc 3x When I open d2, there is the blue blizzard animation, then the iced blizzard animation, then the main image appear. So, I need at least to 1x push esc, so i can see the menu.
Orgins Posted February 22, 2007 Posted February 22, 2007 (edited) Just a little tip try running diablo in window mode (you may want to use WinMove) Edit a diablo ii shortcut properties to something like "C:\Program Files\Diablo II\Diablo II.exe" -w There is also i command that will auto start loging you in battle.net but I have forgotten it. Something like -battle or maybe -bnet or -skip or something else. Edit- Try "C:\Program Files\Diablo II\Diablo II.exe" -w -skiptobnet Edited February 22, 2007 by Orgins I'm a newbie.Sorry if I don't reposed to your replays very fast.
pcdestroyer Posted February 22, 2007 Posted February 22, 2007 what he said ^^ Also you might wanna try to set a different title so u don't have to use the long d2loader title, add this to the shortcut -title "Diablo II" then the title of the window should be Diablo II And i think that you should run it in window mode, its much more easier to work with, especially when using a bot.
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