
brodeur235 wrote:I'm looking to expand on the concept I learned while completing programming challenge #2 on HTS to create an aimbot, the will automate mouse movement and click when a pixel of a cetern coloref from the windows api is encountered, however the algorithm I have right now works but is slow and misses fast pixel flashes of the target color because it takes so long for my program to loop 1280x800 times and perform an if-then each go around to catch everything. Better alg solutions?

First of all what does moving your mouse and clicking have to do with finding the ASCII value of the encoded message
I'm looking to expand on the concept I learned while completing programming challenge #2 on HTS to create an aimbot, the will automate mouse movement and click when a pixel of a cetern coloref from the windows api is encountered

I understand you were just trying to help and made a simple mistake - everyone does it - however please be more thorough in the future,

I read it several times... Ok I didn't get out of your post that you completed HTS Programming Challenge 2
looking to expand on the concept I learned while completing programming challenge #2
Don't assume you're always right...
First of all what does moving your mouse and clicking have to do with finding the ASCII value of the encoded message?
... somebody not me could take serious offense to that statement.
As far as I am concerned I didn't make any mistakes and I was very thorough.
#include <windows.h>
#include <fstream>
using namespace std;
void LeftClick();
int main()
{
//Warning
MessageBox(NULL, "Review the readme.txt file NOW if you have not already done so.", "Review Readme", MB_OK);
//Readme and FAQ
ofstream faq_file;
faq_file.open("F.A.Q.txt");
faq_file << "-|-|-|-|-|-|-|-|-W4RLOCK's AIMBOT-|-|-|-|-|-|-|-|-" << endl
<< " (C) 2008 All Rights Reserved." << endl
<< " A W4RLOCK PRODUCTION." << endl
<< " Release Date: January 1, 2008" << endl
<< " Version: 1.0" << endl << endl << endl
<< "Frequently Asked Questions" << endl << endl
<< "Question: After I select the target color pixel and press shift W4RLOCK's AIMBOT does not do anything." << endl
<< "Answer: If you're on an OS simulator such as VirtualPC or Parallels the win32 library can be defective." << endl << endl;
faq_file.close();
ofstream readme_file;
readme_file.open("readme.txt");
readme_file << "-|-|-|-|-|-|-|-|-W4RLOCK's AIMBOT-|-|-|-|-|-|-|-|-" << endl
<< " (C) 2008 All Rights Reserved." << endl
<< " A W4RLOCK PRODUCTION." << endl
<< " Release Date: January 1, 2008" << endl
<< " Version: 1.0" << endl << endl << endl
<< "You MUST READ AND FOLLOW THESE INSTRUCTIONS since you" << endl
<< "have initiated your copy of W4RLOCK's AIMBOT." << endl << endl
<< "1.) Run this application (already done if you're reading this)" << endl
<< "2.) Navigate to the screen with the target color pixel on it." << endl
<< "3.) Press the CONTROL key to let W4RLOCK's AIMBOT know that you're ready." << endl
<< "4.) Hold your cursor over the color pixel to be targetted and press ENTER." << endl
<< "5.) You will be notified that the bot is now on 'standby'." << endl
<< "6.) To alternate between the 'in use' and 'standby' statuses press SHIFT." << endl
<< " NOTE: You'll benotified every time the status is changed." << endl
<< "7.) To turn the bot completely off, press the CONTROL key." << endl
<< " NOTE: This will work weather you're in 'standby' mode or the 'in use' mode.";
readme_file.close();
system("START readme.txt");
//Loop
for(;;)
{
if(GetAsyncKeyState(VK_CONTROL)<0)
{
break;
}
}
MessageBox(NULL, "Select The Color Pixel To Be Targetted.", "Select Pixel", MB_OK);
//Get Pixel Color
for(;;)
{
if(GetAsyncKeyState(VK_RETURN)<0)
{
break;
}
}
POINT position;
GetCursorPos(&position);
int xpos = position.x;
int ypos = position.y;
COLORREF target_pixel_color;\
HDC desktop = GetDC(HWND_DESKTOP);
target_pixel_color = GetPixel(desktop, xpos, ypos);
//ofstream file1;file1.open("a.txt");file1<<"POS:"<<xpos<<"x"<<ypos<<endl<<"COLOR:"<<target_pixel_color;file1.close();system("START a.txt");
MessageBox(NULL, " The Pixel Has Been Selected.\n\r\n\r Press and hold CONTROL to turn W4RLOCK's AIMBOT off.", "Pixel Selected", MB_OK);
//Loop
for(;;)
{
int quit = 0;
//While on standby
MessageBox(NULL, "W4RLOCK's AIMBOT on standby. Press SHIFT to activate.", "Bot Temporarily Paused", MB_OK);
for(;;)
{
if(GetAsyncKeyState(VK_SHIFT)<0)
{
MessageBox(NULL, "W4RLOCK's AIMBOT now in use. Press SHIFT to return to standby.", "Bot Engaged", MB_OK);
break;
}
if(GetAsyncKeyState(VK_CONTROL)<0)
{
quit = 1;
break;
}
}
if(quit==1)
{
break;
}
//While in use
for(;;)
{
int temp_quit = 0;
for(int x = 0; x < 1280; x++)
{
for(int y = 0; y < 800; y++)
{
if(GetPixel(desktop, x, y)==target_pixel_color)
{
SetCursorPos(x, y);
LeftClick();
}
if(GetAsyncKeyState(VK_SHIFT)<0)
{
temp_quit = 1;
break;
}
if(GetAsyncKeyState(VK_CONTROL)<0)
{
quit = 1;
break;
}
}//yloop
if(temp_quit==1)
{
break;
}
if(quit==1)
{
break;
}
}//xloop
if(temp_quit==1)
{
break;
}
if(quit==1)
{
break;
}
}//INUSE loop
if(quit==1)
{
break;
}
}//ON/OFF loop
MessageBox(NULL, "W4RLOCK's AIMBOT is off.", "Bot Disengaged", MB_OK);
return 0;
}
void LeftClick()
{
POINT mousexy;
GetCursorPos(&mousexy);
mouse_event(MOUSEEVENTF_LEFTDOWN, mousexy.x, mousexy.y, 0, 0);
mouse_event(MOUSEEVENTF_LEFTUP, mousexy.x, mousexy.y, 0, 0);
}
/*
void LeftClick()
{
INPUT Input={0};
Input.type = INPUT_MOUSE;
Input.mi.dwFlags = MOUSEEVENTF_LEFTDOWN;
::SendInput(1,&Input,sizeof(INPUT));
::ZeroMemory(&Input,sizeof(INPUT));
Input.type = INPUT_MOUSE;
Input.mi.dwFlags = MOUSEEVENTF_LEFTUP;
::SendInput(1,&Input,sizeof(INPUT));
}
*/


I'm looking to expand on the concept I learned while completing programming challenge #2 on HTS to create an aimbot ... Alg solutions?
First of all what does moving your mouse and clicking have to do with finding the ASCII value of the encoded message?
Ignoring bad spelling and grammer, I think I made it fairly clear that I've completed HTS' programming challenge 2 and am working on creating an aimbot ... I understand you were just trying to help and made a simple mistake - everyone does it - however please be more thorough in the future.
I read it several times and I still didn't understand what you're trying to do.
Don't assume you're always right - somebody not me could take serious offense to that statement. As far as I am concerned I didn't make any mistakes and I was very thorough.




Users browsing this forum: No registered users and 0 guests