
pcdestroyer
Active Members-
Posts
80 -
Joined
-
Last visited
Everything posted by pcdestroyer
-
don't u need the ID of the button to click it... use the Autoit Window Info as mentioned in the above post.
-
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.
-
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
-
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.html Some of the functions you might need would be: PixelGetColor MouseClick if, endif func, endfunc
-
Look up these functions: PixelSearch MouseClick Example $coord = PixelSearch ( left, top, right, bottom, color [, shade-variation] [, step]] ) MouseClick("left", $coord[0], $coord[1])
-
why do you even use the cd o_O just use d2loader or create an image
-
Script For A Game
pcdestroyer replied to Evil_Has_Survived's topic in AutoIt General Help and Support
wooh , haven't been on these forums for a while ;] well i wrote a bot a while ago, based on the rishodi one, but i made my own chicken/pot drinker ill post a link in a few minutes, i need to find the source code first ;] Edit: Check my signature i updated my site ;] , just look at the source code and you should be able to figure it out, its percentage based , meaning you need to set a percent of your life at which it will chicken out. Edit:#2 If you have any question, feel free to ask =P -
very nice script, i like it btw, the broken is awesome i've seen all 3 episodes
-
There is no way you can use pixelchecksum on a minimized window... at least not with AutoIt. Because in order to get the pixels the window has to be active ( visible ). Btw im also working on a Clone Hunter i sent u a pm ... lol i haven't been on these forums for months o.O
-
Edit: nvm i found the dll it was on my other pc YAY :dance:
-
Hey you know that au3xtra dll that Larry made ... i used to have it but i've seem to have deleted it, so i was wondering if someone can give me a link to it ... i searched the forums couldnt find anything ... more specificaly i need the mousetrap function hehe Thanks !
-
Send("{SHIFTDOWN}") mouseclick or w/e Send("{SHIFTUP}")
-
functions without Func()
pcdestroyer replied to B3TA_SCR1PT3R's topic in AutoIt General Help and Support
ummm i dont think that's possible ... but neway what's wrong with "func"? -
lol actually i made something like that but it was used to hide Diablo II window cuz my parents always complain that i play a lot haha Yours is good
-
_Talk, this function speaks text to u! :D
pcdestroyer replied to El-Trucha's topic in AutoIt Example Scripts
real nice el-trucha i like it a lot lol reminds me of ventrilo lol it's the same voice -
all i can say is RTFM!!! Your questions concern the basics of autoit well if you dont know even that u really should take a look @ the help file .... Edit: You can't stop a download .... at least i dont think it is possible.
-
Window 2 Window Mouse/Read
pcdestroyer replied to SmOke_N's topic in AutoIt General Help and Support
activate the $t2 first then read the text u need .. then activate $t1 and write it ...hope that helps -
cool this dll is awesome man !!!!!!!!! lol i really like it
-
nah i rather keep it this way ... 'cause some people like me , just copy diablo II from like their 2nd pc and it doesnt write any reg values and it could be a problem if it reads from the registry
-
I can't get any loops to work besides...
pcdestroyer replied to ratacat's topic in AutoIt General Help and Support
try putting an endif after next -
Dim [Const] $variable Dim $array[subscript 1]...[subscript n] Parameters const [optional] If present, the Const keyword creates a constant rather than a variable. $variable The name of the variable to declare. subscript The number of elements to create for the array dimension, indexed 0 to n-1. Remarks The Dim/Local/Global keywords perform a similar function. 1. Declare a variable before you use it (similar to VBScript) 2. Create an array ; Example 2 - Declaring arrays Dim $weeklyWorkSchedule[$daysWorking] Global $chessBoard[8][8] Local $mouseCoordinates[2], $windowStats[4] Global $array[2] Edit: i think u have to use $array[0] and $array[1] ... not 1 and 2
-
DllCall to change beep frq & dur
pcdestroyer replied to alexischeng's topic in AutoIt Example Scripts
looks amazing but for some reason i cant hear anything .... that happend with that morse code thing too .. it just doesnt make a sound what's wrong with my pc GRRRRRRRRRRRRRR -
hmm nice ... but i cant get it working ... i do it and then i dont hear anything
-
Need help with gui ...
pcdestroyer replied to pcdestroyer's topic in AutoIt General Help and Support
oh i finally get it ) thnx a lot phillip -
ok i have made a gui window and then there is a button ... how can i make when i click the button another gui window will pop up ? #include <GUIConstants.au3> Global $Difficulty=1 GUICreate("My GUI") ; will create a dialog box that when displayed is centered GUISetBkColor (0x487CEA) GUISetHelp("notepad") ; will run notepad if F1 is typed $SlotConfiguration=GUICtrlCreateLabel ("Slot Configuration", 10, 10, 500, 50) $Difficulty_label = GUICtrlCreateLabel ("Difficulty", 10, 50, 50) ; first cell 50 width $Normal = GUICtrlCreateRadio ("Normal", 10, 70, 50, 20) $Nightmare = GUICtrlCreateRadio ("Nightmare", 10, 90, 65, 20) $Hell = GUICtrlCreateRadio ("Hell", 10, 110, 50, 20) $okbutton = GUICtrlCreateButton ("OK", 200, 200, 50) $AccountPassword = GUICtrlCreateLabel ("Account and Password:", 95, 50, 115) $Account = GUICtrlCreateInput ("AccountName", 95, 75, 80, 20) $Passoword = GUICtrlCreateInput ("Password", 95, 105, 80, 20) $Character = GUICtrlCreateLabel ("Character Position:", 10, 140, 115) $CharacterCombo = GUICtrlCreateCombo ("1", 10,160,35) $HelpChar= GUICtrlCreateButton ("?", 50, 157, 17) GUICtrlSetData($CharacterCombo,"2|3|4|5|6|7|8","1") GUICtrlSetColor($SlotConfiguration,0xDD0609) GUICtrlSetState ($Normal,$GUI_CHECKED) GUICtrlSetFont ($SlotConfiguration,18, 400, 6, "Comic Sans MS") GUISetState () ; will display an empty dialog box ; Run the GUI until the dialog is closed While 1 $msg = GUIGetMsg() Select Case $msg = $Normal $Difficulty = 1 Case $msg = $Nightmare $Difficulty = 2 Case $msg = $Hell $Difficulty = 3 endselect If $msg = $HelpChar then ; .... how do i do it ?? endif ;568 515 If $msg = $GUI_EVENT_CLOSE Then ExitLoop wend