Register for free, and make this box disappear!

Welcome to the BF Forums! Register Now, It's Free!


Welcome to the BF Forums; your source for the latest and greatest video game news, strategies, discussions, and resources. Join over 60,000 like-minded gamers from around the world to chat about your interests in our community.

You are currently viewing the forums as a guest user, which limits your access to certain content, contests, downloads, and more. By joining our free community, you will be able to respond in discussions/articles, contact members privately (PM), participate in regular-scheduled contests, see less advertisements, and have access to many other features. Registration is quick, easy, and completely free.



Have your questions answered. Share your thoughts about a topic. Take 2 minutes, Register Now!
BattleForums.com Forums > Major Games > Diablo > Diablo Hacking

We're Half-Way There!! - BF Lotto: $50 Ebay or Amazon Gift Card - A Single Click is All It Takes...

Reply
 
Thread Tools Display Modes
Old 03-10-2004, 09:28 PM   #1 (permalink)
BattleForums Junior Member
 
Psycho*Killa's Avatar
 
Join Date: Jan 2004
Location: Georgia
Posts: 70
AutoIt Starters tutorial

Sup hey i know every that starfish has made a Autoit starters for a spam bot but i just this for prople who want to make more or less then a spam bot well here it goes


Psycho*killa Autoit Tutorial




Spam Bot

this is a autoit 3 tutorial:

a simple spambot would look something like this:

setenv, inifile, %A_SCRIPTDIR%\\(file name.ini)

then all your inireads
ex.
this is my psychospam ini's



run, %A_scriptdir%Psychospamexit.exe
setenv, inifile, %A_SCRIPTDIR%\\psychospam.ini
iniread, 1m, %inifile%, spam message c, 1m
iniread, 2m, %inifile%, spam message c, 2m
iniread, 3m, %inifile%, spam message c, 3m
iniread, 4m, %inifile%, spam message c, 4m
iniread, 5m, %inifile%, spam message c, 5m
iniread, messagecount, %inifile%, messages, messagecount
iniread, 1, %inifile%, channels, 1
iniread, 2, %inifile%, channels, 2
iniread, 3, %inifile%, channels, 3
iniread, 4, %inifile%, channels, 4
iniread, 5, %inifile%, channels, 5
iniread, channelcount, %inifile%, channels, channelcount
iniread, account, %inifile%, diablo2settings, account
iniread, password, %inifile%, diablo2settings, password
iniread, d2path, %inifile%, diablo2settings, d2path
iniread, characterslot, %inifile%, diablo2settings, characterslot1
iniread, characterslot, %inifile%, diablo2settings, characterslot2
iniread, characterslot, %inifile%, diablo2settings, characterslot3
iniread, characterslot, %inifile%, diablo2settings, characterslot4
iniread, characterslot, %inifile%, diablo2settings, characterslot5
iniread, characterslot, %inifile%, diablo2settings, characterslot6
iniread, characterslot, %inifile%, diablo2settings, characterslot7
iniread, characterslot, %inifile%, diablo2settings, characterslot8
iniread, d2titel, %inifile%, sleeps, d2titel
iniread, sleepintodiablo, %inifile%, sleeps, sleepintodiablo
iniread, sleeptologin, %inifile%, sleeps, sleeptologin
iniread, sleeptocharacterselect, %inifile%, sleeps, sleeptocharacterselect
iniread, sleeptobnet, %inifile%, sleeps, sleeptobnet
iniread, sleepforgames, %inifile%, sleeps, sleepforgames
iniread, sleeptojoingame, %inifile%, sleeps, sleeptojoingame
iniread, sleeptoexit, %inifile%, sleeps, sleeptoexit
iniread, whentojoingame, %inifile%, game, whentojoingame
iniread, repeat, %inifile%, repeat, repeat
iniread, channelmessages, %inifile%, channels, channelmessages
IniRead, channel_number, %SettingsFile%, channels,channel_number
IniRead, Spam_Message, %SettingsFile%, Spam Message, Spam_Message_Number
iniread, realm, %inifile%, realm, realm
iniread, chara_slot, %inifile%, chara_slot, chara_slot
iniread, number_of_channels, %inifile%, channel, numberofchannels
iniread, channel_name, %inifile%, channel name, numberofchannel
SetEnv, Session_Min, 0
SetEnv, Session_Max, 0
SetEnv, Spam_Message_Number, 0
SetEnv, Num_Of_Messages, 0
SetEnv, SettingsFile, %A_SCRIPTDIR%\\psychospam.ini
setenv, channel_number, 0
setenv, number_of_channels, 0
setenv, m_n, 0
setenv, n_o_m, 0

now i know its hard to read but if you download my spam bot it would be easier to read

now you dont have to do this but i swear it is MUCH easier to do this before you start your spam bot .

it would also be alot easier if you lable everything ex.


run_d2:

realm:

character_select:

ect.

if you do this it would be alot easier to know where the problem is if you have oneand also you need to have gosubs in the order of the lables
ex. ( from my spam bot)


gosub, run_d2

gosub, realm

gosub, Europe

gosub, login

gosub, character_select

gosub, join

gosub, type

gosub, leave

gosub, 1_5

gosub, loop

you need all the gosubs before Bot and after your iniread's

now if you put:

gosub, load_d2

gosub, load_MH

it WILL load diablo2 first so put it in the order you want it in and after each lable you much add reture to it to take it back to the gosubs

now for the character selection i use this method:

IfEqual, %char_slot%, 2, Send, {RIGHT}
IfEqual, %char_slot%, 3, Send, {DOWN}
IfEqual, %char_slot%, 4, Send, {RIGHT}{DOWN}
IfEqual, %char_slot%, 5, Send, {DOWN}{DOWN}
IfEqual, %char_slot%, 6, Send, {RIGHT}{DOWN}{DOWN}
IfEqual, %char_slot%, 7, Send, {DOWN}{DOWN}{DOWN}
IfEqual, %char_slot%, 8, Send, {RIGHT}{DOWN}{DOWN}{DOWN}
sleep, 3000
send, {ENTER}


you can also just tell the mouse to click on a spot.

for joing channles i use this method:

CHANNEL_MESSAGE_1:

leftclick, 98, 498
sleep, 1000
leftclick, 94, 458
leftclick, 94, 458
send, /join %1% {ENTER}
sleep, 1000
repeat, 3
leftclick, 94, 458
leftclick, 94, 458
send, %1m%{ENTER}
sleep, 3000


CHANNEL_MESSAGE_2:

leftclick, 98, 498
sleep, 1000
leftclick, 94, 458
leftclick, 94, 458
send, /join %2% {ENTER}
sleep, 1000
repeat, 3
leftclick, 94, 458
leftclick, 94, 458
send, %2m%{ENTER}
sleep, 3000

CHANNEL_MESSAGE_3:

leftclick, 98, 498
sleep, 1000
leftclick, 94, 458
leftclick, 94, 458
send, /join %3% {ENTER}
sleep, 1000
repeat, 3
leftclick, 94, 458
leftclick, 94, 458
send, %3m%{ENTER}
sleep, 3000

CHANNEL_MESSAGE_4:

leftclick, 98, 498
sleep, 1000
leftclick, 94, 458
leftclick, 94, 458
send, /join %4% {ENTER}
sleep, 1000
repeat, 3
leftclick, 94, 458
leftclick, 94, 458
send, %4m%{ENTER}
sleep, 3000
Iniread, Stop,
CHANNEL_MESSAGE_5:

leftclick, 98, 498
sleep, 1000
leftclick, 94, 458
leftclick, 94, 458
send, /join %5% {ENTER}
sleep, 1000
repeat, 3
leftclick, 94, 458
leftclick, 94, 458
send, %5m%{ENTER}
sleep, 3000

this method will not work inless you have your ini set like mine above you can change the %-----% to wut you wish but they must match the iniread

now joing games is the way to go i know so heres my method:


join:

leftclick, 672, 493
sleep, 3000
leftclick, 582, 490
sleep, 3000
leftclick, 672, 493
SLEEP, %sleepforgames%
leftclick, 514, 262
leftclick, 514, 262
sleep, %sleeptojoingame%
Iniread, Stop, %SettingsFile%, Ever Changing Values, Stop
IfEqual, Stop, Yes!, goto, end



type:

repeat, 3

Spam_Routine:
;Start of spam sub-routine

Random, Spam_Message_number, 1, 5
;Set's random spam message

IniRead, Spam_Message, %SettingsFile%, Spam Message, %Spam_Message_Number%
;Reads whatever random spam message it came up with

SetKeyDelay, 10

Send, {ENTER}%Spam_Message%{ENTER}
;Here is the spam message

Sleep, 2000
;Hang out in the game just spammed.

leave:

sleep, %sleeptoexit%
send, {ESCAPE}
sleep, 600
mousemove, 423, 288
sleep, 100
send, {ENTER}

this is a slow method but sure work method there are alot of other methods out there



Running proggrams

now there are alot of ways to run programs the only command is:

run, (path)(or exe)

like for example

run, notepad.exe

or

run, C:\\Program Files\\AIM\\aim.exe
now you must i repeat MUST have two slashes \\

mouse movement

MouseClick Perform a mouse click operation.
__________________

Last edited by Psycho*Killa; 03-11-2004 at 04:30 PM.
Psycho*Killa is offline   Reply With Quote
Alt Heute
Advertising

Beitrag Sponsored Links

__________________
Ads suck! Take 2 minutes to register for your free account, and GET RID OF THESE ADS!
   
Old 03-11-2004, 04:30 PM   #2 (permalink)
BattleForums Junior Member
 
Psycho*Killa's Avatar
 
Join Date: Jan 2004
Location: Georgia
Posts: 70
MouseClickDrag Perform a mouse click and drag operation.

MouseDown Perform a mouse down event at the current mouse position.

MouseGetCursor Returns a cursor ID Number of the current Mouse Cursor.

MouseGetPos Retrieves the current position of the mouse cursor.

MouseMove Moves the mouse pointer.

MouseUp Perform a mouse up event at the current mouse position.

MouseClick ( "button" [, x, y [, clicks [, speed ] )

mouseclickdrag ( "button", x1, y1, x2, y2 [,speed] )

MouseClickDrag ( "button", x1, y1, x2, y2 [,speed] )

MouseGetCursor ( )
Returns a cursor ID Number:
0 = UNKNOWN (this includes pointing and grabbing hand icons)
1 = APPSTARTING
2 = ARROW
3 = CROSS
4 = HELP
5 = IBEAM
6 = ICON
7 = NO
8 = SIZE
9 = SIZEALL
10 = SIZENESW
11 = SIZENS
12 = SIZENWSE
13 = SIZEWE
14 = UPARROW
15 = WAIT

MouseGetPos ( )
Returns a two-element array that containing the mouse coordinates:
$array[0] = X coord (horizontal)
$array[1] = Y coord (vertical)

MouseMove ( x, y [, speed] )

mouseup ( "button" )


Window Commands

WinActivate Activates (gives focus to) a window.

WinActive Checks to see if a specified window exists and is currently active.

WinClose Closes a window.

WinExists Checks to see if a specified window exists.

WinGetCaretPos Returns the coordinates of the caret in the foreground window

WinGetClassList[/b] Retrieves the classes from a window.

WinGetClientSize Retrieves the size of a given window's client area.

WinGetHandle Retrieves the internal handle of a window.

WinGetPos Retrieves the position and size of a given window.

WinGetState Retrieves the state of a given window.

WinGetText Retrieves the text from a window.

WinGetTitle Retrieves the full title from a window.

WinKill Forces a window to close.

WinMenuSelectItem Invokes a menu item of a window.

WinMinimizeAll Minimizes all windows.

WinMinimizeAllUndo Undoes a previous

WinMinimizeAll function.

WinMove Moves and/or resizes a window.

WinSetOnTop Change a window's "Always On Top" attribute.

WinSetState Shows, hides, minimizes, maximizes, or restores a window.

WinSetTitle[/b] Changes the title of a window.

WinWait Pauses execution of the script until the requested window exists.

WinWaitActive Pauses execution of the script until the requested window is active.

WinWaitClose Pauses execution of the script until the requested window does not exist.

WinWaitNotActive Pauses execution of the script until the requested window is not active.
__________________
Psycho*Killa is offline   Reply With Quote
Old 03-11-2004, 04:38 PM   #3 (permalink)
BattleForums Junior Member
 
Psycho*Killa's Avatar
 
Join Date: Jan 2004
Location: Georgia
Posts: 70
Window Commands

WinActivate ( "title" [, "text"] )

WinClose ( "title" [, "text"] )

AutoItSetOption ( "option", param ) = WinDetectHiddenText

WinActivate ( "title" [, "text"] )

WinExists ( "title" [, "text"] )

WinGetCaretPos ( )

WinGetClassList ( "title" [, "text"] )

WinGetClientSize ( "title" [, "text"] )

WinGetHandle ( "title" [, "text"] )

WinGetPos ( "title" [, "text"] )

WinGetState ( "title" [, "text"] )

WinGetText ( "title" [, "text"] )

WinGetTitle ( "title" [, "text"] )

WinKill ( "title" [, "text"] )

WinMenuSelectItem ( "title", "text", "item" [, "item" [, "item" [, "item" [, "item" [, "item" [, "item"] )

WinMinimizeAll ( )

WinMinimizeAllUndo ( )

WinMove ( "title", "text", x, y [, width [, height]] )

WinSetOnTop ( "title", "text", flag )

WinSetState ( "title", "text", flag )

WinSetTitle ( "title", "text", "newtitle" )

WinWait ( "title" [, "text" [, timeout]] )

WinWaitActive ( "title", ["text"], [timeout]

WinWaitClose ( "title" [, "text" [, timeout]] )

WinWaitNotActive ( "title" [, "text" [, timeout]] )
__________________
Psycho*Killa is offline   Reply With Quote
Old 03-11-2004, 04:52 PM   #4 (permalink)
BattleForums Junior Member
 
Psycho*Killa's Avatar
 
Join Date: Jan 2004
Location: Georgia
Posts: 70
String Commands

String Returns the string representation of an expression.

StringAddCR Takes a string and prefixes all linefeed characters ( Chr(10) ) with a carriage return character ( Chr(13) ).

StringFormat Returns a formatted string (similar to the C sprintf() function).

StringInStr Checks if a string contains a given substring.

StringIsAlNum Checks if a string contains only alphanumeric characters.

StringIsAlpha Checks if a string contains only alphabetic characters.

StringIsASCII Checks if a string contains only ASCII characters in the range 0x00 - 0x7f (0 - 127).

StringIsDigit Checks if a string contains only digit (0-9) characters.

StringIsFloat Checks if a string is a floating point number.

StringIsInt Checks if a string is an integer.

StringIsLower Checks if a string contains only lowercase characters.

StringIsSpace Checks if a string contains only whitespace characters.

StringIsUpper Checks if a string contains only uppercase characters.

StringIsXDigit Checks if a string contains only hexadecimal digit (0-9, A-F) characters.

StringLeft Returns a number of characters from the left-hand side of a string.

StringLen Returns the number of characters in a string.

StringLower Converts a string to lowercase.

StringMid Extracts a number of characters from a string.

StringReplace Replaces substrings in a
string.

StringRight Returns a number of characters from the right-hand side of a string.

StringSplit Splits up a string into substrings depending on the given delimiters.

StringStripCR Removes all carriage return values ( Chr(13) ) from a string.

StringStripWS Strips the white space in a string.

StringTrimLeft Trims a number of
characters from the left hand side of a string.

StringTrimRight Trims a number of characters from the right hand side of a string.

StringUpper Converts a string to uppercase.




String commands

String ( expression )

StringAddCR ( "string" )

StringFormat ( "format control", $var1 [, ... $var32] )

StringInStr ( "string", "substring" [, casesense] )

StringIsAlNum ( "string" )

StringIsAlpha ( "string" )

StringIsASCII ( "string" )

StringIsDigit ( "string" )

StringIsFloat[/b] ( "string" )

StringIsInt ( "string" )

StringIsLower ( "string" )

StringIsSpace ( "string" )

StringIsUpper ( "string" )

StringIsXDigit ( "string" )

StringLeft ( "string", count )

StringLen ( "string" )

StringLower ( "string" )

StringLower ( "string" )

_StringReverse( $sString )

StringReplace ( "string", "searchstring", "replacestring" [, count [, casesense]] )

_StringReverse( $sString )

StringRight ( "string", count )

StringSplit ( "string", "delimiters" )

StringStripCR ( "string" )

StringStripWS ( "string", flag )

StringTrimLeft ( "string", count )

StringTrimRight ( "string", count )

StringUpper ( "string" )


** string are only for autoit version 3.0
__________________
Psycho*Killa is offline   Reply With Quote
Old 03-11-2004, 04:58 PM   #5 (permalink)
BattleForums Senior Member
 
Starfish's Avatar
 
Join Date: Feb 2003
Location: Sweden
Posts: 3,594
That's alot of stuff hehe, I'll add this thread to the sticky

btw: you're gonna get banned for quadruple-posting!!1
Starfish is offline   Reply With Quote
Old 03-11-2004, 04:59 PM   #6 (permalink)
BattleForums Junior Member
 
Psycho*Killa's Avatar
 
Join Date: Jan 2004
Location: Georgia
Posts: 70
Language Reference - Variables

A variable is just a place to store data in memory so that it can be accessed quickly. Think of it as a mailbox in memory that you can put information in or take information out of. For example you might create a variable to store the number a user's response to a question, or the result to a math equation.

Each variable has a name (again, similar to a mailbox) and must start with the $ character and may only contain letters, numbers and the underscore _ character. Here are some example names:

$var1

$my_variable



Each variable is stored as a variant.



Declaring Variables

Variables are declared and created with the Dim, Local and Global keywords:

Dim $var1

Or you can declare multiple variables at once:

Dim $var1, $myvariable



You can also assign a variable without declaring it first, but many prefer explicit declarations.

$var1 = "create and assign"



Scope

A variable's scope is controlled by when and how you declare the variable. If you declare a variable at the start of your script and outside any functions it exists in the Global scope and can be read or changed from anywhere in the script.

If you declare a variable inside a function it is in Local scope and can only be used within that same function. Variables created inside functions are automatically destroyed when the function ends.

By default when variables are declared using Dim or assigned in a function they have Local scope unless there is a global variable of the same name (in which case the global variable is reused). This can be altered by using the Local and Global keywords to declare variables and force the scope you want.



**********************************
This is my tutorial i made by hand i didnt copy and past and please post your replies
__________________
Psycho*Killa is offline   Reply With Quote
Old 03-11-2004, 05:16 PM   #7 (permalink)
BattleForums Addict
 
CuStOm-OwNaGe's Avatar
 
Join Date: Jun 2003
Location: ~~~~~~~~~~~~~~~~~~~ Posts: 1337
Posts: 865
lol this is one huge starter tut... maybe its more of a intermediate tutorial... and AutoIt is ummmm out of style... no1 uses it anymore... but i suppose ill say GJ... even though i didnt spend the whole day reading it :P
__________________


Xtreme Hosting
Taking Hosting... and Making it Cheap as Hell
~*~ Hacking Team ~*~
Custom
StarFish
Xiode
CoolMission
Aerol33t
CuStOm-OwNaGe is offline   Reply With Quote
 
Reply

« Got Prob With Pindlebot | Cant Get Pickit To Work!!!!!! »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


All times are GMT -4. The time now is 11:46 PM.



Powered by vBulletin® Version 3.7.2 | Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0