[Help]Making Pixel Bot Run In Background C#

12/13/2016 01:14 Pendramon#1
I am currently making a DO bot and wanna ask how to make a pixel bot run in the background in C#? any information that will be of help to me before i start coding the pixel bot will be very much appreciated as i am learning as i am going. Thank you all!

-Pendramon
12/13/2016 08:21 Diаmonds#2
You might want to look into that [Only registered and activated users can see links. Click Here To Register...]
12/13/2016 13:36 Freshek#3
Quote:
Originally Posted by Diаmonds View Post
You might want to look into that [Only registered and activated users can see links. Click Here To Register...]
CefSharp is only Chromium wrapper. You can't do a bot only with CS.
12/13/2016 17:57 Pendramon#4
Quote:
Originally Posted by Freshek View Post
CefSharp is only Chromium wrapper. You can't do a bot only with CS.
Yea but wouldn't CefSharp.Offscreen make it possible for the bot to run in the background?

Am a guy who doesn't give up easily eventually i will find a way to do it and in the process i will learn alot.
12/13/2016 18:37 Mountain68#5
Quote:
Originally Posted by Pendramon View Post
Yea but wouldn't CefSharp.Offscreen make it possible for the bot to run in the background?

Am a guy who doesn't give up easily eventually i will find a way to do it and in the process i will learn alot.
What kind of bot you want to make ?
12/13/2016 19:03 Pendramon#6
Quote:
Originally Posted by Mountain68 View Post
What kind of bot you want to make ?
Well a box collector/event box collector using image search(pixel bot) that runs in the background. I have made a fully intractable custom form with my own images and everything. I plan on adding a bunch of settings, anti ban features, pet support, travel to map, reconnect, respawn, flee, buy cloak, use cloak cpu and if i become good at this i will have my go at an auto bidder bot and much more as i learn C#. Why make just another bot you may ask well not every bot is updated regularly and therefore most of them have bugs and by making this bot i will increase my C# knowledge. I will make the bot free at start at least until i get a good grasp of C# or i might keep it for free if i get good responses from the community. Learning programming languages for me is a hobby and its also a great set of skills which can be useful in the future. Plus i got a lot of time, if i am not at work am siting on my computer pretty much. :)

I am currently just researching some stuff before i start the actual coding i don't know how exactly i should start thats why i asked how to make a bot work in background
12/13/2016 21:24 [becky]#7
it's good to see new developers trying to do something for this community.
and regarding your bot, I suggest doing it firstly non-background (normal) and testing all the functions/botting logic. while your testers are testing the bot, you can focus on learning how to make your bot work in background. it's only an opinion, but i hope it's helpful.
I wish you best of luck and I'm glad you're passionate about programming
12/13/2016 22:41 jolaxbeat#8
good luck !
12/14/2016 02:37 Palladium<3#9
Hey man :),

Your post caught my attention as I tried doing the same thing a few months ago in order to try to understand the language better, like yourself. I was however stopped in my tracks as my university course started :mad:.

I'm not sure how to go about making a bot which works in the background but I have attempted something that works in the foreground (in chrome like palavia).

The biggest problem that I faced- something so simple, was to grab a screenshot and search the screenshot for a couple of pixels in that order. Most methods were far too slow, sometimes they took a second or longer! After a few hours of researching I came across this project that somebody made which allowed me to search a screenshot for a bitmap in about ~50ms. (I can't find where I got the code from, but I still had it on my computer so I will attach it!)

I took some of the code, modified it so that it would work on my project, and tested it. After some trial and error I managed to make a bot which would fly around 1-7 take screenshots every second looking for a snippet of a bk. As soon as it was found it would autolock it, circle it, and shoot it.

However a few problems- I had no idea when the bk actually died, and also I struggled trying to find a way how I could check my health. More problems, this method worked, but as soon as I relogged/ jumped the port I would have to retake the snippet or it wouldn't find it.

So my bottleneck was still to take a darn screenshot and look for a darn snippet. Still have not been able to do this reliably. Bots like FsBot Lion run so smoothly, eventhough the boxes are sort of moving around. I don't get it, but well played to those developers.

If there are any good C# developers who are feeling a bit like :facepalm: right now please PM me or add onto this thread, I would love to know if there is something stupid I missed.

Goodluck- it is a lot harder than it looks!

Attached is a zip file containing the project. Unless you have a good plan for the screenshot/search I suggest you take a look. Code:
12/14/2016 05:09 Pendramon#10
Quote:
Originally Posted by Palladium<3 View Post
Hey man :),
Ty man will have a look at it its gonna be of great help
Quote:
Originally Posted by jolaxbeat View Post
good luck !
Thanks :)
Quote:
Originally Posted by [becky] View Post
it's good to see new developers trying to do something for this community.
and regarding your bot, I suggest doing it firstly non-background (normal) and testing all the functions/botting logic. while your testers are testing the bot, you can focus on learning how to make your bot work in background. it's only an opinion, but i hope it's helpful.
I wish you best of luck and I'm glad you're passionate about programming
Thanks :) I understand what you mean but when i see a foreground bot that uses your mouse i just get aids x)
12/14/2016 12:23 Mountain68#11
I would be very happy to see your bot Release !!
12/14/2016 19:25 KickMayer#12
If you need testers, i can help out with that :)

Known as a bot tester :P
12/14/2016 19:39 jolaxbeat#13
Quote:
Originally Posted by KickMayer View Post
If you need testers, i can help out with that :)

Known as a bot tester :P
Nobody knows you ;)
12/14/2016 19:44 KickMayer#14
Quote:
Originally Posted by jolaxbeat View Post
Nobody knows you ;)
Haha lol yeah people do :P

You are just too unexperienced to know that ^^
(looks at your reg. date) :P
12/14/2016 22:32 PNTX#15
Quote:
Originally Posted by jolaxbeat View Post
Nobody knows you ;)
meh. i know this guy.

but nobody knows you >:D