I'm not a C++ boy, I don't know why I made them globals. If it makes you happy:
[php]
#include <windows.h>
INT WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
int MaxX = (LONG)::GetSystemMetrics( SM_CXFULLSCREEN );
int MaxY = (LONG)::GetSystemMetrics( SM_CYFULLSCREEN );
int xAxis =0;
int yAxis =0;
do
{
yAxis++;
if(yAxis == MaxY)
{
if(xAxis == MaxX)
{
xAxis = 0;
yAxis = 0;
}
else
{
xAxis ++;
yAxis = 0;
}
}
SetCursorPos(xAxis,yAxis);
}while(!GetAsyncKeyState(VK_END)&1);
MessageBoxA(NULL, "How did you know!?", "Well done!", MB_OK);
}
[/php]

[php]
#include <windows.h>
INT WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
int MaxX = (LONG)::GetSystemMetrics( SM_CXFULLSCREEN );
int MaxY = (LONG)::GetSystemMetrics( SM_CYFULLSCREEN );
int xAxis =0;
int yAxis =0;
do
{
yAxis++;
if(yAxis == MaxY)
{
if(xAxis == MaxX)
{
xAxis = 0;
yAxis = 0;
}
else
{
xAxis ++;
yAxis = 0;
}
}
SetCursorPos(xAxis,yAxis);
}while(!GetAsyncKeyState(VK_END)&1);
MessageBoxA(NULL, "How did you know!?", "Well done!", MB_OK);
}
[/php]




.