[Code]Most productive thing i made that works for a while.
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]
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]





