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



LinkBack URL
About LinkBacks



I used to be an adventurer like you... then I took an arrow to the knee.
) The tool you are using should have something to the same effect. Otherwise you can pass an additional command to the linker (which I don't know, but you can look it up at a reference site to your compiler).
CornedBee