And what does it do?
you can comment about more efficient means of doing things, i wont listen.
I already know it's dirty and inneficient as possible, and i know how to make it more efficient.
if you want it, just c+p the source, im too lazy(and tired) to upload and get vscans
ill add 16:10 Support later NYA~
[php]
#include <iostream>
#include <windows.h>
using namespace std;
int main()
{
int xMax, yMax, ratio, ratioTest;
int x = 0;
int y = 0;
cout << "Ratio:\n1.(4:3)\n2.(16:9)\n";
cin >> ratio;
if(ratio == 1)
{
cout << "Ratio set for 4:3\n";
cout << "Enter the max X and Y for your monitor\n";
cin >> xMax >> yMax;
ratioTest = xMax * 0.75f;
if(yMax != ratioTest)
{
cout << "Wrong x and y values for your monitor, exiting.\n";
Sleep(3000);
return 0;
}
if(yMax == ratioTest)
{
cout << "The x and y match the aspect ratio.\nNow Set the velocity(anything above 20 is insanely fast.)\n";
int vel;
cin >> vel;
cout << "velocity set for " << vel << ". Commencing possestion in 3 seconds\n";
Sleep(3000);
while(true)
{
possess: //press thx now!
SetCursorPos(x,y);
x = vel+x;
y = x * 0.75f;
Sleep(15);
if((x==xMax)&&(y==yMax))
{
x=0;
y=0;
goto possess;
}
if(GetAsyncKeyState(VK_END))
{
return 0;
}
}
}
}
if(ratio == 2)
{
cout << "Ratio set for 16:9\n";
cout << "Enter the max X and Y for your monitor\n";
cin >> xMax >> yMax;
ratioTest = xMax * 0.5625f;
if(yMax != ratioTest)
{
cout << "Wrong x and y values for your monitor, exiting.\n";
Sleep(3000);
return 0;
}
if(yMax == ratioTest)
{
cout << "The x and y match the aspect ratio.\nNow Set the velocity(anything above 20 is insanely fast.)\n";
int vel;
cin >> vel;
cout << "velocity set for " << vel << ". Commencing possestion in 3 seconds\n";
Sleep(3000);
while(true)
{
possess1: //press thx, get bacon, eat bacon
SetCursorPos(x,y);
x = vel+x;
y = x * 0.5625f;
Sleep(15);
if((x==xMax)&&(y==yMax))
{
x=0;
y=0;
goto possess1;
}
if(GetAsyncKeyState(VK_END))
{
return 0;
}
}
}
}
}
[/php]
Last edited by Kallisti; 10-07-2010 at 06:20 AM.
未来が見えなくて怖いから
未来が見えてしまって悲しいから
目を閉じて優しい思い出に浸ってしまう
Last edited by doofbla; 10-07-2010 at 06:14 AM.
_____________________________________________
READING TUTORIAL:
1. READ MY POST
2. THINK ABOUT MY POST
3. PRESS THANKS
4. MAYBE CORRECT MY POSTS :P
Dijkstra:
"Computer Science is no more about computers than astronomy is about
telescopes."
THANKS BUTTON RIGHT DOWN --->
Hell_Demon (10-07-2010)
seems that u where abit high: //press thx, get bacon, eat bacon
k my bases are full of crap too, nvm.
dururuMAIN
SMECKSYTHREADHOOK
ect.
this is unconventional but most of the time not patched by some game =3
@ Anime Section,Otaku/weeabo (orz.) @Graphics Section, Novice DigiArtist
neuest gift from Yura~Chan:
https://bakyurayuu.deviantar*****m/#/d372taw
2nd Place MOTM#9 Theme: CharMods - Combat Arms [No - Thanks] button
come on you know that don't want to push that ordinary button
I made a more "efficient" version, this time with autodetect.
[php]#include <iostream>
#include <Windows.h>
using namespace std;
//------------------------------------------Globals----------------------------------------------//
//----------------------------------------------------------------------------------------------//
int x = 0;
int y = 0;
int xMax = GetSystemMetrics(SM_CXSCREEN);
int yMax = GetSystemMetrics(SM_CYSCREEN);
int xFin = 0;
int yFin = 0;
int vel = 0;
int i = 0;
bool __43;
bool __1610;
bool __169;
//---------------------------------------Functions-------------------------------------------------//
//------------------------------------------------------------------------------------------------//
void ret()
{
while(i != 6)
{
// just to look cool
cout << "Retrieving your screen resolution and ratio.\n";
Sleep(1000);
i++;
system("cls");
cout << "Retrieving your screen resolution and ratio..\n";
Sleep(1000);
i++;
system("cls");
cout << "Retrieving your screen resolution and ratio...\n";
Sleep(1000);
i++;
system("cls");
cout << "Retrieving your screen resolution and ratio.\n";
Sleep(1000);
i++;
system("cls");
cout << "Retrieving your screen resolution and ratio..\n";
Sleep(1000);
i++;
system("cls");
cout << "Retrieving your screen resolution and ratio...\n";
Sleep(1000);
i++;
system("cls");
}
cout << "Retrieved!\n";
cout << "Resolution is " << xMax << " by " << yMax << '\n';
xFin = xMax;
yFin = yMax;
if((xMax * 0.75f) == yMax)
{
cout << "Ratio is 4:3\n";
__43 = true;
}
else if((xMax * 0.625f) == yMax)
{
cout << "Ratio is 16:10\n";
__1610 = true;
}
else
{
cout << "Ratio is 16:9\n";
__169 = true;
}
}
//---------------------------------------Entry Point---------------------------------------------//
//----------------------------------------------------------------------------------------------//
int main()
{
ret();
cout << "Now set the velocity (1-15)\n";
cin >> vel;
cout << "Velocity set for " << vel << '\n';
//----------------------------------------------------------
//----------------------------------------------------------
if(__43 == true)
{
cout << "Possessing with velocity of " << vel << " in 3 seconds\n";
Sleep(3000);
while(true)
{
p1:
SetCursorPos(x,y);
x = vel+x;
y = x * 0.75f;
Sleep(15);
if((x==xFin)&&(y==yFin))
{
x=xFin;
y=0;
goto p1;
}
if(GetAsyncKeyState(VK_END))
{
exit(0);
}
}
}
////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////
else if(__1610 == true)
{
cout << "Possessing with velocity of " << vel << " in 3 seconds\n";
Sleep(3000);
while(true)
{
p2:
SetCursorPos(x,y);
x = vel+x;
y = x * 0.625f;
Sleep(15);
if((x==xFin)&&(y==yFin))
{
x=0;
y=0;
goto p2;
}
if(GetAsyncKeyState(VK_END))
{
exit(0);
}
}
}
/////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////
else
{
cout << "Possessing with velocity of " << vel << " in 3 seconds\n";
Sleep(3000);
while(true)
{
p3:
SetCursorPos(x,y);
x = vel+x;
y = x * 0.5625f;
Sleep(15);
if((x==xFin)&&(y==yFin))
{
x=0;
y=0;
goto p3;
}
if(GetAsyncKeyState(VK_END))
{
exit(0);
}
}
}
//-----------------------------------------------------------
//-----------------------------------------------------------
return 0;
}
[/php]
Last edited by Kallisti; 10-07-2010 at 06:02 PM.
未来が見えなくて怖いから
未来が見えてしまって悲しいから
目を閉じて優しい思い出に浸ってしまう
You can win the rat race,Originally Posted by Jeremy S. Anderson
But you're still nothing but a fucking RAT.
++Latest Projects++
[Open Source] Injection Library
Simple PE Cipher
FilthyHooker - Simple Hooking Class
CLR Injector - Inject .NET dlls with ease
Simple Injection - An in-depth look
MPGH's .NET SDK
eJect - Simple Injector
Basic PE Explorer (BETA)