Sign in to follow this  
Followers 0
7inman12

Disapointment... Pixel Search

8 posts in this topic

I had a lot of trouble in the past making a pixel search I tried to make a search to find a certain color within a 10x10 sqaure around my Mouse Position. then left click it once sleep for 5 seconds then repeat till i end the function. I know how to make it repeat, click, and sleep, I know the color.... its 0xB80403 but I cant get it to search. I gave up on this a long time ago because I got very disappointed in myself and deleted everything now I want to start it and complete so if someone could plz make me a script and explain how to make this thing work properly. Thank you

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

I dont see the point of detecting color around mouse position.

Is that color detection mented for the color of mouse over object in some mmorpg game to detect when mouse change its color so that youl know that its on the target or something similar?

If its not, after you show your code so that everyone can see what did you try, someone will probably come along and help you to correct them.

Edited by bogQ

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 

Share this post


Link to post
Share on other sites

So basicly Ok well. lemme me uhhhh be me precise. I tried to make 2 different scrpits 1 for just a basic pixel search within a defined window. And then one to search with a certain radius of the mouses position. So that i can manual hover my mouse around a certain thing that has the same designated color as other things but not what i want to target and have it automatically click on that color within the radius of the mouse.

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

So is it for MMORPG?

And if its not where is your new code that you have problems with?

Edited:

yes its for a mmorpg I dont have a code as of yet because I deleted them when i got aggravated and gave up. But now I am hoping someone could teach me maybe a few lines at a time. I dont want to sound like a leecher... or w/e you wanna call it lol but ummmmm give me a minute and i can try to throw one together. from what i remember. ok

Sory your probably end up brakeing rules for that mmorpg so im not gona assist you Edited by bogQ

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 

Share this post


Link to post
Share on other sites

yes its for a mmorpg I dont have a code as of yet because I deleted them when i got aggravated and gave up. But now I am hoping someone could teach me maybe a few lines at a time. I dont want to sound like a leecher... or w/e you wanna call it lol but ummmmm give me a minute and i can try to throw one together. from what i remember. ok

Share this post


Link to post
Share on other sites

Func _Search()

While $Repeat = True

$Pos = MouseGetPos()

$coord = PixelSearch(0, 0, 1680, 1050, 0xB80403)

MouseMove($coord[0], $coord[1], 5)

If $coord = PixelSearch($Pos, $Pos, $Pos, $Pos, 0xB80403) Then

MouseClick("left", $coord[0], $coord[1], )

Else

Sleep(5000)

EndIf

WEnd

Share this post


Link to post
Share on other sites

Well yeah it would be breaking the rules, but its a friends private server but if you don't wanna help then thats fine. I understand.

Share this post


Link to post
Share on other sites

Hmmm

sounds pretty similar to a gentleman in this thread http://www.autoitscript.com/forum/index.php?showtopic=107476

The answer is in that thread too

Perhaps your problem is the mouse pointer is hiding the pixel.


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

Monkey's are, like, natures humans.

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  
Followers 0