Solved Choose the part of screen to be scanned

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

FanBoys

Newbie
Jul 31, 2012
4
212
0
Hello !!

Please How to choose the part of screen to be scanned
Sorry for my English I not English ..
 

Crazywink

Hacker
Meme Tier VIP
Dank Tier Donator
Jul 18, 2012
626
4,613
17
There is a lot that goes into the scanning of the screen.
C++:
void ScanBMPHorizontal(ScanContents * scan)
{
	int startedInScanTime = clock();
	for(int y = (scan->RcWindow.bottom - scan->RcWindow.top)/4;
		y < ((scan->RcWindow.bottom - scan->RcWindow.top)-(scan->RcWindow.bottom - scan->RcWindow.top)/3.5);
		y++)
	{
		
		for(int x = (int)((scan->RcWindow.right - scan->RcWindow.left)/4); 
			x < (int)((scan->RcWindow.right - scan->RcWindow.left)-(scan->RcWindow.right - scan->RcWindow.left)/4);
			x ++)
		{
			
			if(CompareColour(scan->PPixels, scan->Bm.bmHeight, scan->Bm.bmWidth, x, y))
			{
				int z = x;
				
				while(z < (int)((scan->RcWindow.right - scan->RcWindow.left)-(scan->RcWindow.right - scan->RcWindow.left)/4))
				{
					
					if(!CompareColour(scan->PPixels, scan->Bm.bmHeight, scan->Bm.bmWidth, z, y))
					{
						break;
					}
					z++; 
				}
				
				SetCursorPos((z -( z - x)/2)+scan->RcWindow.left, (y+4)+scan->RcWindow.top);
				
				POINT currentPos; 
				GetCursorPos(&currentPos);
				

				CurrentMouseXY.X = currentPos.x;
				CurrentMouseXY.Y = currentPos.y;
				
				return;
			}
		}
	}
This is the main scanner loop. As you can see we are taking RcWindow and getting the location. I would suggest downloading Fleep's entire source and taking a look at it. (https://guidedhacking.com/forum/index.php?topic=145.0) He has everything in comments so you can see exactly what does what. I would explain it all, but that would be essentially redoing his whole tutorial which doesn't need to be done. :)

Crazywink
 

nomad

Newbie
Full Member
Aug 2, 2012
13
242
0
C++:
for(int y = (scan->RcWindow.bottom - scan->RcWindow.top)/4;
    y < ((scan->RcWindow.bottom - scan->RcWindow.top)-(scan->RcWindow.bottom - scan->RcWindow.top)/3.5);
    y++)
  {
    
for(int x = (int)((scan->RcWindow.right - scan->RcWindow.left)/4); 
			x < (int)((scan->RcWindow.right - scan->RcWindow.left)-(scan->RcWindow.right - scan->RcWindow.left)/4);
			x ++)
This code is what determines how much of the area is scanned, speciffically the "/4" and "/3.5"Sections. This is my understanding at least.
 

FanBoys

Newbie
Jul 31, 2012
4
212
0
crazywink

I have already download his source code but as I said I understand not all because his comment, I am not English but he does not how explain to make for example to scan a part of the upper right screen

Nomad:

I understands always not, 4 and 3.5 represent the part of screen to be scanned? But he can go how much? for example scan the top has right

is the part of screen:

 

nomad

Newbie
Full Member
Aug 2, 2012
13
242
0
Oh I see what you need to do, OK a few questions first.

Is that picture static, meaning does it stay in the same position relative to the window at all times?

Also what exactly are you scanning for in that section?
 

FanBoys

Newbie
Jul 31, 2012
4
212
0
Yes this image is static I understands not your last question

It's write on the picture to scan orange pixel lol
It was not really an example xD (Sorry)
 
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods