-
Apr 13th, 2021, 11:23 AM
#1
Thread Starter
New Member
Get Pixel from window and click if that pixel (or in range of that pixels) exists.
Hello VB Forums!
I'm trying to accomplish a new project for myself which is giving me headaches.
So, I want to:
- Get/Focus a window (done)
- Detect pixel (done)
- Mouse inputs (done)
- Now the fun part, I want to check if Pixels eg. (55, 80, 120) are found in that window, click it, also, if other pixels are relative to (55, 80, 120) click it also.
Thanks, hope someone could help me.
-
Apr 13th, 2021, 12:47 PM
#2
Re: Get Pixel from window and click if that pixel (or in range of that pixels) exists
Google VB.Net MouseEvent API
- Coding Examples:
- Features:
- Online Games:
- Compiled Games:
-
Apr 13th, 2021, 03:53 PM
#3
Re: Get Pixel from window and click if that pixel (or in range of that pixels) exists
Are those colors that you are wanting to click on? 55, 80, 120 looks like an RGB color. If it's a color, what does relative mean? It's fairly unlikely that there's just ONE pixel of a certain color, and you likely don't want to be clicking on a second pixel that is adjacent to the first.
My usual boring signature: Nothing
-
Apr 13th, 2021, 06:06 PM
#4
Re: Get Pixel from window and click if that pixel (or in range of that pixels) exists
Originally Posted by Shaggy Hiker
Are those colors that you are wanting to click on? 55, 80, 120 looks like an RGB color. If it's a color, what does relative mean? It's fairly unlikely that there's just ONE pixel of a certain color, and you likely don't want to be clicking on a second pixel that is adjacent to the first.
I think the OP wants to keep clicking at random points within a region defined by a color. I’ve seen these type of questions before, where the OP thinks clicking at different points will appear more of a human interaction with the app.
- Coding Examples:
- Features:
- Online Games:
- Compiled Games:
-
Apr 14th, 2021, 05:21 AM
#5
Thread Starter
New Member
Re: Get Pixel from window and click if that pixel (or in range of that pixels) exists
Originally Posted by Shaggy Hiker
Are those colors that you are wanting to click on? 55, 80, 120 looks like an RGB color. If it's a color, what does relative mean? It's fairly unlikely that there's just ONE pixel of a certain color, and you likely don't want to be clicking on a second pixel that is adjacent to the first.
Yes, that's a RGB color, if pixels are relative >> should be like ± eg. 10, so be like this <=> 55, 80, 120
Eg. -1: >> 54, 79, 119
+1: >> 56, 81, 121
Up to N value or tolerance or how do you want to call it...
-
Apr 14th, 2021, 08:48 AM
#6
Re: Get Pixel from window and click if that pixel (or in range of that pixels) exists
That's a pretty ambitious goal. Colors are vague and images are large, so this type of thing is usually a pretty bad idea. What are you hoping to achieve with it?
My usual boring signature: Nothing
-
May 5th, 2021, 01:35 PM
#7
Thread Starter
New Member
Re: Get Pixel from window and click if that pixel (or in range of that pixels) exists
Originally Posted by Shaggy Hiker
That's a pretty ambitious goal. Colors are vague and images are large, so this type of thing is usually a pretty bad idea. What are you hoping to achieve with it?
I'd like to make a bot... Would you suggest me anything else?
-
May 5th, 2021, 02:49 PM
#8
Re: Get Pixel from window and click if that pixel (or in range of that pixels) exists
Originally Posted by piticu97
Hello VB Forums!
I'm trying to accomplish a new project for myself which is giving me headaches.
So, I want to:
- Get/Focus a window (done)
- Detect pixel (done)
- Mouse inputs (done)
- Now the fun part, I want to check if Pixels eg. (55, 80, 120) are found in that window, click it, also, if other pixels are relative to (55, 80, 120) click it also.
Thanks, hope someone could help me.
So what's the problem???
- Coding Examples:
- Features:
- Online Games:
- Compiled Games:
-
May 5th, 2021, 02:52 PM
#9
Re: Get Pixel from window and click if that pixel (or in range of that pixels) exists
As Shaggy Hiker told you... It's unlikely you'll find a block of rgb(55, 80, 120) colored pixels. Actual colors are vague.
- Coding Examples:
- Features:
- Online Games:
- Compiled Games:
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|