Ok, so im back with a new noob tutorial to make a bot in Autoit for allot of online games. Remember to visit my website.
If you haven't read my first post to to it
Ok like always you need this 2 programs.
Ok, now you will need to download the R32.zip file on this post. So now make a new project with ScTE, and ad all the text from 32.txt on the top of the new project. This code makes you work with Search on your screen for images. Her's the code also.
Func _WaitForImagesSearch($findImage,$waitSecs,$resultP osition,ByRef $x, ByRef $y,$tolerance)
$waitSecs = $waitSecs * 1000
$startTime=TimerInit()
While TimerDiff($startTime) < $waitSecs
for $i = 1 to $findImage[0]
sleep(100)
$result=_ImageSearch($findImage[$i],$resultPosition,$x, $y,$tolerance)
if $result > 0 Then
return $i
EndIf
Next
WEnd
return 0
EndFunc
#EndRegion ### START ImageSearch ###
Ok make a new folder on your desktop and add a new folder in it call it img and add the ImageSearchDLL.dll in the folder (not in the img folder.)
Ok so make a picture of somthing you want the bot is going to click on if is there. so this is my image, also add it to the img folder.
ok now to the coding part. This is a code to make the program read and see where the image is on your desktop, X Y angels.
Quote:
$x1=0
$y1=0
Then we will add a hot key to terminate the bot. This will terminate the bot when u press F1. HotKeySet("{F1}", "Terminate")
Now we will need to open and close a loop.
Quote:
While 1
WEnd
Ok now in the loop we will need to add the code that fiends the image and clicks on it
Quote:
$result = _ImageSearch("img/2.bmp",1,$x1,$y1,1)
Here you will make a variable that makes the program know to what to search on. Also adding the posiion on X,Y angels.
Then we will need to make a IF sate that will make the movement and click or what ever.
Quote:
if $result=1 Then
MouseMove($x1,$y1,3)
MouseClick("left",$x1,$y1,1,3)
MouseClick("left",$x1,$y1,1,3)
EndIf
So now the script for that image will move and click on it "LEFT CLICK WITH THE MOUSE."
now out side of the loop we will need to finish the terminate kotkey script so add this code. This will me called when you press the F1 button
[AutoIt] TCP Tutorial 09/08/2014 - Coding Tutorials - 54 Replies Hi Leute!
Da ich TCP selber für ein interessantes Thema halte, hab ich mal ein Tutorial darüber geschrieben. Have Fun! ;)
Inhalt:
-] Voraussetzungen
-] Was ist TCP?
-] Client erstellen
-] Server erstellen
Autoit Bot Tutorial 1 for Noobies 09/23/2010 - Coding Tutorials - 8 Replies Wheal today i am bord so i will make a easy autoit bot tutorial. Easy bot program 2010
You Will need this programs:
AutoIt v3.3.4.0
SciTE4AutoIT3
[AutoIt] Tutorial 06/01/2010 - AutoIt - 2 Replies Heute zeige ich euch mal viele befehle
Befehl 1 - MsgBox:
- was macht dieder befehl ???
er eröfnet eine nachrichtenfenster
-der befehl:
MsgBox (0, "", "")
-Erklärung
0 = es geht 0 -6
die zahl macht die buttons hier aufgezählt: