Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 00:10

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Vb.Net bot for a 2d game

Discussion on Vb.Net bot for a 2d game within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Dec 2007
Posts: 49
Received Thanks: 5
Vb.Net bot for a 2d game

Hello. A friend and I are working on a Vb.net bot for a 2d game. We can make the bot fine but we are stuck on how exactly we would be able to detect the colors. If someone could tell me how I could detect colors on the entire screen it would really help us out. Thank you.
jaketheking1020 is offline  
Old 11/24/2008, 10:25   #2

 
elite*gold: 150
Join Date: Apr 2007
Posts: 2,372
Received Thanks: 6,627
Quote:
Originally Posted by jaketheking1020 View Post
Hello. A friend and I are working on a Vb.net bot for a 2d game. We can make the bot fine but we are stuck on how exactly we would be able to detect the colors. If someone could tell me how I could detect colors on the entire screen it would really help us out. Thank you.
You want the R G B of every Pixel ?
have you tryed a loop with getpixel and check if the R G B is the color ur searching ? :P
wurstbrot123 is offline  
Thanks
1 User
Old 11/24/2008, 20:25   #3
 
elite*gold: 0
Join Date: Oct 2005
Posts: 201
Received Thanks: 23
If you know the location of the pixel, call Winapi GetPixel.

If you want to find a certain pixel on the screen:
  1. Take screenshot, store it in a bitmap object.
  2. Use Lockbits on that bitmap.
  3. Run through the byte array using unsafe code and compare the colors...

is a good tutorial on Lockbits.
mondesser is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[O-Game] Trinity Wars - Private Server - Game X300 - Fleet X200 - Production X 4
01/05/2011 - Browsergames - 4 Replies
Website: Trinity Wars - Online Space Simulation & Strategy Game Forum: CODeSHOUT - Index Trinity is a strategy space simulation game where only need a browser and an internet connection in order to play! 1. Register, Sign up, create your world and begin to create a new world! 2. Make your Empire, colonize other planets, build a big fleet, join forces with friends and conquer the univers 3. Investigate new technologies, build fleets, defensive structures, develop colonies 4....
Valournetwork.com-Trinity Wars-Space Simulation Role Playing Game – O-game Server
11/20/2010 - Browsergames - 1 Replies
Website: CodeShout Network - TWars v2.0 - Free Massive Multiplayer Online Game where you need a browser and an internet connection in order to play! Flash Intro: http://valournetwork.com/flash/intro.swf Forum: Code Shout Forums - Index Description: CodeShout: Trinity Wars - The War Has Just Begun - Massive Multiplayer Online Space Role Playing Game - you only need a browser and an internet connection in order to play! Year 2070 - The Universe Is Your- O-game Type Server # Register,...
[O-game]Trinity Wars .net|O-game Private Server X300|MORPGame
03/08/2010 - Browsergames - 2 Replies
/



All times are GMT +1. The time now is 00:10.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.