daiBot - Create bots in C++ / C#/ AutoIt

10/15/2015 17:55 Daifoku#1
daiBot


This small DLL* allows you to easily create a pixel-based bot in C# / C++ and AutoIt that runs really fast** in background-mode.
The bot uses PostMessage.

Pixel detection also works in background.
It's getting the DeviceContext and creates a DIBSection


Current main featues: getPixel, click, drag, pDrag
Going to add more features soon!
press thanks if you like my work.

*Compiled with VS2015 Community x86
**Gets 26000 frames per second on my PC.. that should be fast enough
AutoIt Wrapper

C Exports (If you want to write a wrapper for another language)

Interface.h (pure virtual)

C++ Example


AutoIt Example


C++ Tutorial for daiBot.dll : [Only registered and activated users can see links. Click Here To Register...]

You can find all files in the attachements. Examples are also included (Except the c++ one..

BugFixes
-----------------------------------------------------
AutoIt Wrapper: small bug in Func startBot($window)
replace $window = getHandle("BlueStacks App Player")
with $window = getHandle($window)
.. will be fixed in the next version

Changelog
15/10/2015 17:47 Initial Release
10/16/2015 17:40 Daifoku#2
mag jemand die DLLImports für C/C# erstellen ?
Kenne mich damit leider nicht aus, sonst würde ich es selber machen.

PS: Implementiere momentan eine Picture-in-Picture Suche.
  • Es werden nur 32Bit Bitmaps unterstützt.
  • Transparenz wird durch die Farbe RGB(0,255,0) untestüzt. (knall grün.)
  • Toleranz der Farbpixel kann eingestellt werden. Berechnung durch XYZ->CIELAB (https://de.wikipedia.org/wiki/Lab-Fa...von_XYZ_zu_Lab)
  • Boyer Moore Algorthmus zur schnellstmöglichen Suche (https://de.wikipedia.org/wiki/Boyer-...us#Algorithmus). Dazu werden die zu suchenden Bilder in ein entsprechendes Format vor-konvergiert. Anpassen der Breiten und höhen verhältnisse, hinzufügen von Wildcard-pixeln 0x00ff00, etc..

edit:
läuft selbst auf meinem PC zu langsam.. und der ist für Rechenoperationen optimiert.

Ohne Fourier Transformationen kann man das knicken. Leider muss ich in 3 Tagen wieder arbeiten und ich werde für eine DFT Implementation bestimmt länger als 3 Tage benötigen...

hatte mir ehrlich gesagt mehr erhofft.
Werde wohl nur die Exact-Match-Suche mit Boyer Moore implementieren, die ist nämlich schnell.
10/17/2015 20:59 kidsforsale#3
[Only registered and activated users can see links. Click Here To Register...]

i download then run and got this error message.
10/18/2015 01:38 alpines#4
Quote:
Originally Posted by kidsforsale View Post
[Only registered and activated users can see links. Click Here To Register...]

i download then run and got this error message.
Which au3 version are you using? This should only work with 3.3.10.2+
12/27/2015 12:26 evilbaby#5
don't send in windows 7 64bit, autoit new version . :( !
04/28/2019 10:29 Napulé#6
Didn't worked for me... Using Autoit.
05/16/2019 10:45 killzone#7
@[Only registered and activated users can see links. Click Here To Register...] can show sample code for vb.net or C#?