I started learning C++ and after a couple of text programs I decided to jump right into mouse programming, anyways I wrote this program that makes the mouse move
now my problem is: the DOS(dont know the real name of the black box that pops out, would be nice if anyone could tell me the tech term) window is bothering me, how can I hide it?Code:#include <windows.h>
int main(){
POINT pt; int x, y;
while (1)
{
Sleep(6);
GetCursorPos(&pt);; x = pt.x; y = pt.y;
SetCursorPos(x-5,y-5);
if(GetAsyncKeyState(VK_ESCAPE)<0){break;}
}
return 0;
}
I'm using Dev-C++ and Windows XP