Jump to content

AutoIt quick pixel help


Recommended Posts

Hey guys i just started using AutoIt yesterday and im doing pretty well. the code i need though is something like:

if pixel at (coordinates) = this color

then do bla bla bla

and if pixel at (coordinates)<> this color

then do bla bla bla

i just wanna know whats the code to make it check this place for the color and then do what i order, any way to do that?

Link to comment
Share on other sites

PixelGetColor() << helpfile

Thank you very much :blink:

Got it working....

heres an example post

$var = PixelGetColor( 100 , 100 )
If $var = 0xCCCCCC Then $answer = MsgBox(4, "Bot Start", "Welcome to TLBB bot by Aloosh. This is v 0.1 Alpha and has many bugs. Over the time I will be improving this bot and add functionality to many other things. You  need to be at the grinding spot. I will be adding support for going there in the future. click Yes as soon as you are ready :D  OHH YEAH... Press ESCAPE to stop the bot:D")
If $var <> 0xCCCCCC Then MsgBox(4096, "Test", "This box will time out in 10 seconds", 10)
Link to comment
Share on other sites

Congrdulations.

Something you ought to be aware of though, is that you will most likely be on your own when it comes to getting help, making a game bot.

You may want to reconsider the way you want to learn Autoit.

This is your crossroads, if you walk with the devil down that perilous path, learning Autoit will prove more difficult.

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Link to comment
Share on other sites

And using PixelGetColor or PixelSearch to make a bot, that'll never end perfectly, or anything near a real bot, especially if you're making it for World of Warcraft. read / write memory is the only true way to make a "trustful" bot.

[u]Only by Attempting the Impossible You Can Earn the Remarkable[/u]
Link to comment
Share on other sites

And using PixelGetColor or PixelSearch to make a bot, that'll never end perfectly, or anything near a real bot, especially if you're making it for World of Warcraft. read / write memory is the only true way to make a "trustful" bot.

3 words:

Diablo 2, mmBot

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...