evanGUY Posted July 12, 2010 Posted July 12, 2010 so in my gui i have 3 cheak boxes with text beside them i need it so only one of the 3 can be cheaked at a time. i also have a run button i want it so when i select box#1 and press run its opens "filex" when i select box#2 and press run it opens "filey" and when box#3 is slected it opens "filez" i can use any help on this. i looked through the help file for a wile to right what i have i have been useing this program for about 20 hours and have 0 exp in any scripting. its going good i think. i also have done a few things with the mouse clicks and pixel dection. these are the files i have to open with the buttons also is there a spot to find very simple scripts that u can see how certin things are written. like little samples for lots of things you find in the gui help and how do u put a text box in that cant be edited when running the script here is the code for what i have now expandcollapse popup#include <GUIConstantsEx.au3> #include <ButtonConstants.au3> Opt('MustDeclareVars', 1) Example() Func Example() Local $msg, $Button_1, $Button_2, $Button_3, $Button_4, $PID, $BS_AUTOCHECKBOX_1, $BS_AUTOCHECKBOX_2, $BS_AUTOCHECKBOX_3 GUICreate("EGbot",130 ,330 ,-1 ,-1 ,-1) WinSetOnTop("EGbot", "", 1) GUISetBkColor(0xFFFFF7) $Button_1 = GUICtrlCreateButton(" HIDE D2 ", 20, 200, 90, 30) $Button_2 = GUICtrlCreateButton(" SHOW D2 ", 20, 240, 90, 30) $Button_3 = GUICtrlCreateButton(" STOP ", 20, 280, 90, 30) $Button_4 = GUICtrlCreateButton(" RUN ", 20, 160, 90, 30) GUISetState() $BS_AUTOCHECKBOX_1 = GUICtrlCreateCheckbox("Norm", 75, 40, 50, 20) $BS_AUTOCHECKBOX_1 = GUICtrlCreateCheckbox("Nm ", 75, 60, 50, 20) $BS_AUTOCHECKBOX_1 = GUICtrlCreateCheckbox("Hell", 75, 80, 50, 20) While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $Button_1 WinSetState ("Diablo II", "", @SW_MINIMIZE) Case $msg = $Button_2 WinSetState ("Diablo II", "", @SW_RESTORE) Case $msg = $Button_3 ProcessClose("game.exe") $PID = ProcessExists("game.exe") ; Will return the PID or 0 if the process isn't found. ProcessClose("ABot.exe") $PID = ProcessExists("Abot.exe") ; Will return the PID or 0 if the process isn't found. If $PID Then ProcessClose($PID) Case $msg = $Button_4 Run("C:\Documents and Settings\Owner\Desktop\Diablo II 1.13-bots\Game.exe -w") EndSelect WEnd EndFunc sorry for all the questions. i hope if i get some answers it will get me on a roll again with figuring things out. i just cant seem to find the answers to my questions.
enaiman Posted July 12, 2010 Posted July 12, 2010 (edited) Here is a "simple" answer regarding Diablo II bots (and any other bots) http://www.autoitscript.com/forum/index.php?showannouncement=11&f=10Forum "stickies" are there for a good reason - you have proven you can write, prove you can read too. Edited July 12, 2010 by enaiman SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script wannabe "Unbeatable" Tic-Tac-Toe Paper-Scissor-Rock ... try to beat it anyway :)
Recommended Posts