How long should it take to search for a pixel in a 800x600
Forum rules
This is a sub-forum for things specific to MicroMacro.
This is not the place to ask questions about the RoM bot, which uses MicroMacro. There is a difference.
This is a sub-forum for things specific to MicroMacro.
This is not the place to ask questions about the RoM bot, which uses MicroMacro. There is a difference.
How long should it take to search for a pixel in a 800x600
How long should it take to search for a pixel in a 800x600 window if I increment the search at 3-10 pixels? I remember the function used for this was bugged and went extremely slow on my windows 7 pc but I'm going to try and make that code using c++ and scan for a few colors here and there, if it's not way to slow.
- Administrator
- Site Admin
- Posts: 5307
- Joined: Sat Jan 05, 2008 4:21 pm
Re: How long should it take to search for a pixel in a 800x6
It depends how you read the values. If you use ReadProcessMemory(), it'll still be really slow. If you, instead, inject some code so that you can natively read the information from within the same process, it'll be almost instant.
Re: How long should it take to search for a pixel in a 800x6
Is the pixelSearch function you hae in micromacro super slow or but it be less then 1 sec to scan 800x600? It's wouldn't be a constant thing and most likely it'd much much small areas such as 10x10.
- Administrator
- Site Admin
- Posts: 5307
- Joined: Sat Jan 05, 2008 4:21 pm
Re: How long should it take to search for a pixel in a 800x6
It is pretty slow. It uses GetPixel() (for compatibility reasons), so it has to make requests to the process and wait for the result for each individual pixel. The speed depends upon the system it is run on, size of the area, and the step size. Still, it should take only one second for 800x600 windows with a small step size (2-4).
Re: How long should it take to search for a pixel in a 800x6
Thats more then quick enough for what i need. I'm going to have to read up on how to do this is c++, thanks.
Who is online
Users browsing this forum: No registered users and 51 guests