How background bots working?

08/28/2015 14:25 Freshek#1
Hi!
I met some bots working in background. How them working? How do they work? Do they use a method PixelSearch?

Sorry for my bad English :D
08/28/2015 15:21 alpines#2
It depends which kind of bot it is. There are variable methods for a bot to work. ControlSend, Memory Manipulation, SendMessage and many other ways.
08/28/2015 20:29 mahmoudshepl#3
Quote:
Originally Posted by alpines View Post
It depends which kind of bot it is. There are variable methods for a bot to work. ControlSend, Memory Manipulation, SendMessage and many other ways.
can my bot work on background
and need help in making moving or turning arround in game
thanks

Global $Paused
HotKeySet("{Home}", "TogPause")
HotKeySet("{END}", "TogExit")
WinWaitActive("CABAL2 - DX9")
WinMove("CABAL2 - DX9","",0,0)
$r=0

Do
auto_attack()
find_monster()
Until $r=1

While 1
Sleep(100)
WEnd
Func TogPause()
$Paused = Not $Paused
While $Paused
Sleep(100)
ToolTip('Script is "Paused"', 0, 0)
WEnd
ToolTip("")
EndFunc

Func TogExit()
Exit 0
EndFunc

Func auto_attack()
If PixelGetColor(504, 10) == 0xFFA800 Then ;Mob Attack HP full/Dying Mob
Do
Send("{1 down}")
Sleep(150)
Send("{1 up}")
Sleep(150)
Send("{1 down}")
Sleep(150)
Send("{1 up}")
Sleep(150)
Send("{1 down}")
Sleep(150)
Send("{1 up}")
Sleep(150)
Send("{1 up}")
Sleep(150)
Send ("{F}")
Sleep(150)
Until PixelGetColor(504, 10) <> 0xFFA800 ;Mob Attack HP Down
EndIf
EndFunc
Sleep (400)

Func find_monster()
If PixelGetColor(04, 10)<> 0xFFA800 Then ;TAB No More Mob/Hp Down

Do
Send("{TAB down}")
Sleep(100)
Send("{TAB up}")
Sleep(100)
Until PixelGetColor(504, 10) == 0xFFA800 ;Change this for Specific Mob
EndIf ;TAB
EndFunc
Sleep(300)
_Degree(_ATan2($targetY - $currentY, $targetX - $currentX)
Func _rotateLeft($ntimes)
AutoItSetOption("SendKeyDownDelay", $ntimes * 21)
Send("a")
EndFunc ;==>_rotateLeft
Sleep (300)

Func _rotateRight($ntimes)
AutoItSetOption("SendKeyDownDelay", $ntimes * 21)
Send("d")
EndFunc ;==>_rotateRight

Sleep(300)
08/28/2015 20:56 alpines#4
Since it's relying on Pixel actions I doubt that you could put it in a background mode without changing many things. If your computing power is enough you could run it in a VM.
08/29/2015 03:04 mahmoudshepl#5
nice idea thanks
09/01/2015 13:22 Freshek#6
I mean about browser game in flash, so I think the Memory Manipulation does not make sense. Is a good solution would be the creation of snapshots minimized windows, and then look at these screen pixel and based on this to send ControlClick?
09/01/2015 14:35 YatoDev#7
Quote:
Originally Posted by Freshek View Post
the creation of snapshots minimized windows
nope. in the basics youre rght but minimized windows normally dont redraw
09/01/2015 15:42 Freshek#8
I noticed that bots working in BG use the library FastFind. What is the library?
09/01/2015 15:53 mlukac89#9
[Only registered and activated users can see links. Click Here To Register...] ur bot cant work since Cabal2 block ControlSend, Send and block cheat engine so u cant use memory too since XIGNCOD3 block it
09/01/2015 16:28 Nevada'#10
what about trapdoor api :)
09/01/2015 23:40 fuso98#11
Is not needed trapdoor.. It's bad. It can be easily do with pure autoit and "some dlls"
09/02/2015 15:42 Freshek#12
I found the solution! Using FastFind created a snapshot of windows running in the background. The problem is how to search for it pixel?
09/02/2015 18:04 mlukac89#13
If u have image u can search on image for pixels or use ImageSearch functinon in autoit
09/12/2015 09:21 Freshek#14
$result = FFNearestSpot(0, 1, 1, 0, 0xDC7F00, True, $x[0], $y[0], $x[1], $y[1])
It return error.
Sorry for my bad English. :P
09/12/2015 09:43 YatoDev#15
schau dir die parameter nochmal an