Arez Posted March 18, 2006 Share Posted March 18, 2006 (edited) I DLed the program and am completely confused on how it works. I just wanted it to maximize the game, and then have it run around repetedly as to stop the game from ending. I have no idea how to make this because I don't understand how to make autoit programs with the AutoIt3 file or really anything about it. Could someone help me make an extremely basic script just so I can see how? Thanks Edited March 18, 2006 by Arez Link to comment Share on other sites More sharing options...
nfwu Posted March 18, 2006 Share Posted March 18, 2006 1) Welcome to the forums2)Look here:Click here for: ==> Welcome to AutoIt 1-2-3 <== A Great Place To Start (By Valuater) #) TwitterOut of date stuff:Scripts: Sudoku Solver | Webserver | 3D library (Pure AutoIt) | Wood's GadgetsUDFs: _WoodUniqueID() | _DialogEditIni() | _Console*() | _GetIPConfigData() | _URLEncode/Decode() Link to comment Share on other sites More sharing options...
greenmachine Posted March 18, 2006 Share Posted March 18, 2006 My initial suggestions:1. Get Beta: http://www.autoitscript.com/autoit3/files/beta/autoit/2. Get Scite: http://www.autoitscript.com/autoit3/scite/downloads.php3. Read the helpfile that comes with AutoIt.4. Use Au3Info.exe that comes with AutoIt.5. Be more descriptive - what game, etc. Link to comment Share on other sites More sharing options...
Arez Posted March 18, 2006 Author Share Posted March 18, 2006 Thank you for your help. I was initially looking to make a script for Diablo II that would make the character run around as to stop the game from disconnecting. I can see that it will take a long time to learn how to do this though. Link to comment Share on other sites More sharing options...
cdkid Posted March 18, 2006 Share Posted March 18, 2006 (edited) Look in the help file at While loops (While 1 for infinite loops) and at the function MouseClick and WinSetState with @SW_MAXIMIZE That should help you a little bit, look at the examples see how they work. AutoIt is a very easy language to learn ~cdkid Edited March 18, 2006 by cdkid 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! Link to comment Share on other sites More sharing options...
greenmachine Posted March 18, 2006 Share Posted March 18, 2006 (edited) Diablo II (as with many other games I suspect) does not have any controls in the window to act upon. Therefore, it's going to be even tougher to interact with the window when it's minimized. There is something in the Scripts and Scraps forum that does with minimized clicking though, you should try doing a search for Diablo II or similar. Edit - aha, this IS an easy task. I just re-read your post and it said MAXimized, not MINimized. MouseClick is the way to go. Edited March 18, 2006 by greenmachine Link to comment Share on other sites More sharing options...
nfwu Posted March 18, 2006 Share Posted March 18, 2006 AutoIt is a very easy language to learnOne of the easist in fact.Very few keywords, many functions, but a lot of functionality!It should only take 2 or 3 days of examining the help file for an experenced programmer to pick this up.#) TwitterOut of date stuff:Scripts: Sudoku Solver | Webserver | 3D library (Pure AutoIt) | Wood's GadgetsUDFs: _WoodUniqueID() | _DialogEditIni() | _Console*() | _GetIPConfigData() | _URLEncode/Decode() Link to comment Share on other sites More sharing options...
greenmachine Posted March 18, 2006 Share Posted March 18, 2006 I went ahead and made a little script to click every 30 seconds in a random location in the Diablo II window: If WinExists ("Diablo II") Then While 1 WinActivate ("Diablo II") WinWaitActive ("Diablo II") $WinPos = WinGetPos ("Diablo II") $Xcoord = Random ($WinPos[0] + 100, $WinPos[0] + $WinPos[2] - 100, 1) $Ycoord = Random ($WinPos[1] + 100, $WinPos[1] + $WinPos[3] - 150, 1) Send ("{ALTDOWN}") MouseClick ("primary", $Xcoord, $Ycoord) Sleep (100) Send ("{ALTUP}") Sleep (30000) WEnd Else Exit EndIf It holds alt when it clicks so you don't accidentally click on a merchant or your stash (or something else). 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