Jump to content
Sign in to follow this  
SteeLpwnage

Color test

Recommended Posts

SteeLpwnage

hey guys I want to ask you if there is any way that I could test some position (part of the screen) for a certain picture and if it is false or true to execute some code

Share this post


Link to post
Share on other sites
SteeLpwnage

Can I quote my quote? :P

Or if you want to check just 1 pixel see PixelGetColor() in the helpfile ;)

lmao thx :blink:

Share this post


Link to post
Share on other sites
SteeLpwnage

I've just made this but it doesn't work so could you help me???

#include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("www.globalinfection.com by SteeL", 269, 119, 191, 131) $Button1 = GUICtrlCreateButton("Start", 24, 24, 97, 73, $WS_GROUP) $Button2 = GUICtrlCreateButton("Stop", 152, 24, 97, 73, $WS_GROUP) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ###  While 1   $nMsg = GUIGetMsg()     Switch $nMsg        Case $GUI_EVENT_CLOSE           Exit    EndSwitch WEnd $run = 0 Select  Case $Button1       $run = 1    Case $Button2       $run = 0 EndSelect  Do  AutoItSetOption("MouseCoordMode", 0)    Send("roflmao")     MouseMove(777, 265)     MouseDown("left")   MouseUp("left")     $checked = PixelGetColor(668, 325)  If $checked = 5534858 Then      MouseMove(668, 325)         MouseDown("left")       MouseUp("left")     EndIf   $checked2 = PixelGetColor(669, 435)     If $checked2 = 5534858 Then         MouseMove(669, 435)         MouseDown("left")       MouseUp("left")     EndIf   $gamel = PixelGetColor(224, 98)     If $gamel = 7765878 Then        Send("aaaaaaaaa")   Else        Send("dddddd")  EndIf Until $run = 0

Share this post


Link to post
Share on other sites
AdmiralAlkex

Me? No I can't. No one is going to help you with bot-related questions.

Just two things before I go:

1. When using the AutoIt-tags button, just press Add on the popup, and then paste your code after that. If you paste your text on the popup your text will all be one long line, like now.

2. You did read the announcement, right? We don't do bots on this website.

www.globalinfection.com may not exist, but on http://www.globalinfection.net/ you have posted 1 bot created in AutoIt. :blink:

Edited by AdmiralAlkex

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.