how to cheat in games!!
commands you need:
#include <windows.h>
POINT p;
COLORREF color;
HDC hDC;
color=GetPixel(hDC,p.x,p.y);
dbPositionMouse (xrnd,yrnd);
color=GetPixel(hDC,p.x,p.y);
red=GetRValue(color);
green=GetGValue(color);
blue=GetBValue(color);
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
mouse_event(MOUSEEVENTF_LEFTUP,p.x,p.y,NULL,GetMessageExtraInfo());
dbWait(xsec);
here is example code that i made too cheat in a game, or auto cheat. Hope this helps.
// whenever using Dark GDK you must ensure you include the header file
#include "DarkGDK.h"
#include <windows.h>
// the main entry point for the application is this function
void DarkGDK ( void )
{
int counterloop=0;
int orecounter=0;
dbMaximizeWindow();
POINT p;
HWND hwnd;
// turn on sync rate and set maximum rate to 60 fps
COLORREF color;
HDC hDC;
bool b;
hDC=GetDC(NULL);
//color=GetPixel(hDC,p.x,p.y);
system("pause");
double px;
double py;
//dbPrint(px);
//dbPrint(py);
dbSyncOn ( );
dbSyncRate ( 60 );
int xrnd;
int yrnd;
int xcnt=0;
int xpre;
int ypre;
bool rightclick=true;
//bool atmc=true;
//bool latterin=false;
bool moveright=false;
bool moverighta=false;
bool movelefta=false;
bool uplatter=false;
bool atmc=true;
bool latterin=false;
bool mine =false;
bool latterout=false;
bool gotobank=false;
bool deposit=false;
bool pressdep=false;
// our main loop
system("pause");
int red;
int green;
int blue;
int xx=0;
int yy=0;
double cred;
double cgreen;
double cblue;
int modxx=50;
int modyy=50;
xx=575;
yy=175;
while ( LoopGDK ( ) &&rightclick)
{
counterloop++;
if(counterloop==1000000)
{
rightclick==false;
}
xrnd=rand()%modxx+xx;
yrnd=rand()%modyy+yy;
xpre=dbMouseX();
ypre=dbMouseY();
// dbPositionMouse(
dbPositionMouse (xrnd,yrnd);
GetCursorPos(&p);
color=GetPixel(hDC,p.x,p.y);
red=GetRValue(color);
green=GetGValue(color);
blue=GetBValue(color);
cred=red;
cblue=blue;
cgreen=green;
if(dbMouseClick()==1)
{
//dbPrint("t");
mouse_event(MOUSEEVENTF_LEFTUP,p.x,p.y,NULL,GetMessageExtraInfo());
}
if(red==253&&green==69&&blue==27&&atmc)
{
counterloop=0;
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
dbWait(30000);
atmc=false;
latterin=true;
xx=300;
yy=290;
modxx=50;
modyy=100;
}
if(dbControlKey()!=0)
{
rightclick=false;
}
if(latterin)
{
counterloop=0;
if(red==108&&green==89&&blue==55)
{
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
latterin=false;
moveright=true;
dbWait(6000);
xx=450;
yy=300;
modxx=100;
modyy=25;
}
if(red==94&&green==77&&blue==48)
{
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
latterin=false;
moveright=true;
dbWait(6000);
xx=450;
yy=300;
modxx=100;
modyy=25;
}
if(red==108&&green==89&&blue==55)
{
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
latterin=false;
moveright=true;
dbWait(6000);
xx=450;
yy=300;
modxx=100;
modyy=25;
}
if(red==100&&green==75&&blue==30)
{
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
latterin=false;
moveright=true;
dbWait(6000);
xx=450;
yy=300;
modxx=100;
modyy=25;
}
if(red==116&&green==92&&blue==48)
{
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
latterin=false;
moveright=true;
dbWait(6000);
xx=450;
yy=300;
modxx=100;
modyy=25;
}
}
if(moveright)
{
counterloop=0;
dbPositionMouse (450,300);
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
for(xcnt=0;xcnt<500;xcnt++)
{
}
mouse_event(MOUSEEVENTF_LEFTUP,p.x,p.y,NULL,GetMessageExtraInfo());
dbWait(5000);
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
for(xcnt=0;xcnt<500;xcnt++)
{
}
mouse_event(MOUSEEVENTF_LEFTUP,p.x,p.y,NULL,GetMessageExtraInfo());
dbWait(5000);
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
for(xcnt=0;xcnt<500;xcnt++)
{
}
mouse_event(MOUSEEVENTF_LEFTUP,p.x,p.y,NULL,GetMessageExtraInfo());
moveright=false;
moverighta=true;
dbWait(5000);
mine=true;
xx=150;
yy=100;
modxx=300;
modyy=400;
}
if(mine)
{
if(red==37&&green==30&&blue==12)
{
counterloop=-1000;
orecounter++;
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
mouse_event(MOUSEEVENTF_LEFTUP,p.x,p.y,NULL,GetMessageExtraInfo());
dbWait(9000);
dbPositionMouse (300,290);
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
mouse_event(MOUSEEVENTF_LEFTUP,p.x,p.y,NULL,GetMessageExtraInfo());
}
if(red==57&&green==45&&blue==18)
{
counterloop=-1000;
orecounter++;
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
mouse_event(MOUSEEVENTF_LEFTUP,p.x,p.y,NULL,GetMessageExtraInfo());
dbWait(9000);
dbPositionMouse (280,290);
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
mouse_event(MOUSEEVENTF_LEFTUP,p.x,p.y,NULL,GetMessageExtraInfo());
}
if(red==49&&green==40&&blue==16)
{
counterloop=-1000;
orecounter++;
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
mouse_event(MOUSEEVENTF_LEFTUP,p.x,p.y,NULL,GetMessageExtraInfo());
dbWait(9000);
dbPositionMouse (300,290);
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
mouse_event(MOUSEEVENTF_LEFTUP,p.x,p.y,NULL,GetMessageExtraInfo());
}
if(red==57&&green==42&&blue==17)
{
counterloop=-1000;
orecounter++;
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
mouse_event(MOUSEEVENTF_LEFTUP,p.x,p.y,NULL,GetMessageExtraInfo());
dbWait(9000);
dbPositionMouse (300,290);
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
mouse_event(MOUSEEVENTF_LEFTUP,p.x,p.y,NULL,GetMessageExtraInfo());
}
if(red==56&&green==44&&blue==17)
{
counterloop=-1000;
orecounter++;
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
mouse_event(MOUSEEVENTF_LEFTUP,p.x,p.y,NULL,GetMessageExtraInfo());
dbWait(9000);
dbPositionMouse (300,290);
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
mouse_event(MOUSEEVENTF_LEFTUP,p.x,p.y,NULL,GetMessageExtraInfo());
}
//if(
if(red==39&&green==32&&blue==13)
{
counterloop=-1000;
orecounter++;
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
mouse_event(MOUSEEVENTF_LEFTUP,p.x,p.y,NULL,GetMessageExtraInfo());
dbWait(9000);
dbPositionMouse (300,290);
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
mouse_event(MOUSEEVENTF_LEFTUP,p.x,p.y,NULL,GetMessageExtraInfo());
}
if(red==21&&green==21&&blue==11)
{
counterloop=-1000;
orecounter++;
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
mouse_event(MOUSEEVENTF_LEFTUP,p.x,p.y,NULL,GetMessageExtraInfo());
dbWait(9000);
dbPositionMouse (300,290);
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
mouse_event(MOUSEEVENTF_LEFTUP,p.x,p.y,NULL,GetMessageExtraInfo());
}
if(red==35&&green==29&&blue==12)
{
counterloop=-1000;
orecounter++;
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
mouse_event(MOUSEEVENTF_LEFTUP,p.x,p.y,NULL,GetMessageExtraInfo());
dbWait(9000);
dbPositionMouse (300,290);
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
mouse_event(MOUSEEVENTF_LEFTUP,p.x,p.y,NULL,GetMessageExtraInfo());
}
if(red==38&&green==31&&blue==13)
{
counterloop=-1000;
orecounter++;
mouse_event(MOUSEEVENTF_LEFTUP,p.x,p.y,NULL,GetMessageExtraInfo());
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
dbWait(9000);
dbPositionMouse (300,290);
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
mouse_event(MOUSEEVENTF_LEFTUP,p.x,p.y,NULL,GetMessageExtraInfo());
}
if(red==37&&green==30&&blue==12)
{
counterloop=-1000;
orecounter++;
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
mouse_event(MOUSEEVENTF_LEFTUP,p.x,p.y,NULL,GetMessageExtraInfo());
dbWait(9000);
dbPositionMouse (300,290);
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
mouse_event(MOUSEEVENTF_LEFTUP,p.x,p.y,NULL,GetMessageExtraInfo());
}
if(red==42&&green==34&&blue==14)
{
counterloop=-1000;
orecounter++;
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
mouse_event(MOUSEEVENTF_LEFTUP,p.x,p.y,NULL,GetMessageExtraInfo());
dbWait(9000);
dbPositionMouse (300,290);
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
mouse_event(MOUSEEVENTF_LEFTUP,p.x,p.y,NULL,GetMessageExtraInfo());
}
if(red==39&&green==32&&blue==13)
{
counterloop=-1000;
orecounter++;
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
mouse_event(MOUSEEVENTF_LEFTUP,p.x,p.y,NULL,GetMessageExtraInfo());
dbWait(9000);
dbPositionMouse (300,290);
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
mouse_event(MOUSEEVENTF_LEFTUP,p.x,p.y,NULL,GetMessageExtraInfo());
}
if(red==40&&green==33&&blue==13)
{
counterloop=-1000;
orecounter++;
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
mouse_event(MOUSEEVENTF_LEFTUP,p.x,p.y,NULL,GetMessageExtraInfo());
dbWait(9000);
dbPositionMouse (300,290);
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
mouse_event(MOUSEEVENTF_LEFTUP,p.x,p.y,NULL,GetMessageExtraInfo());
}
if(red==40&&green==32&&blue==13)
{
counterloop=-1000;
orecounter++;
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
mouse_event(MOUSEEVENTF_LEFTUP,p.x,p.y,NULL,GetMessageExtraInfo());
dbWait(9000);
dbPositionMouse (300,290);
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
mouse_event(MOUSEEVENTF_LEFTUP,p.x,p.y,NULL,GetMessageExtraInfo());
}
if(red==40&&green==33&&blue==13)
{
counterloop=-1000;
orecounter++;
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
mouse_event(MOUSEEVENTF_LEFTUP,p.x,p.y,NULL,GetMessageExtraInfo());
dbWait(9000);
dbPositionMouse (300,290);
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
mouse_event(MOUSEEVENTF_LEFTUP,p.x,p.y,NULL,GetMessageExtraInfo());
}
if(red==43&&green==35&&blue==14)
{
counterloop=-1000;
orecounter++;
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
mouse_event(MOUSEEVENTF_LEFTUP,p.x,p.y,NULL,GetMessageExtraInfo());
dbWait(9000);
dbPositionMouse (300,290);
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
mouse_event(MOUSEEVENTF_LEFTUP,p.x,p.y,NULL,GetMessageExtraInfo());
}
if(red==32&&green==26&&blue==11)
{
counterloop=-1000;
orecounter++;
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
mouse_event(MOUSEEVENTF_LEFTUP,p.x,p.y,NULL,GetMessageExtraInfo());
dbWait(9000);
dbPositionMouse (300,290);
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
mouse_event(MOUSEEVENTF_LEFTUP,p.x,p.y,NULL,GetMessageExtraInfo());
}
if(red==37&&green==30&&blue==12)
{
counterloop=-1000;
orecounter++;
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
mouse_event(MOUSEEVENTF_LEFTUP,p.x,p.y,NULL,GetMessageExtraInfo());
dbWait(9000);
dbPositionMouse (300,290);
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
mouse_event(MOUSEEVENTF_LEFTUP,p.x,p.y,NULL,GetMessageExtraInfo());
}
}
if(mine && orecounter==35)
{
counterloop=-1000;
dbPositionMouse (100,200);
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
mouse_event(MOUSEEVENTF_LEFTUP,p.x,p.y,NULL,GetMessageExtraInfo());
dbWait(5000);
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
mouse_event(MOUSEEVENTF_LEFTUP,p.x,p.y,NULL,GetMessageExtraInfo());
dbWait(5000);
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
mouse_event(MOUSEEVENTF_LEFTUP,p.x,p.y,NULL,GetMessageExtraInfo());
dbWait(5000);
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
mouse_event(MOUSEEVENTF_LEFTUP,p.x,p.y,NULL,GetMessageExtraInfo());
dbWait(5000);
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
mouse_event(MOUSEEVENTF_LEFTUP,p.x,p.y,NULL,GetMessageExtraInfo());
dbWait(5000);
mine=false;
latterout=true;
orecounter=0;
}
if(latterout)
{
xx=300;
yy=290;
modxx=100;
modyy=100;
if(red==41&&green==35&&blue==24)
{
counterloop=-1000;
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
mouse_event(MOUSEEVENTF_LEFTUP,p.x,p.y,NULL,GetMessageExtraInfo());
dbWait(15000);
latterout=false;
gotobank=true;
}
if(red==21&&green==19&&blue==13)
{
counterloop=-1000;
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
mouse_event(MOUSEEVENTF_LEFTUP,p.x,p.y,NULL,GetMessageExtraInfo());
dbWait(15000);
latterout=false;
gotobank=true;
}
if(red==22&&green==19&&blue==13)
{
counterloop=-1000;
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
mouse_event(MOUSEEVENTF_LEFTUP,p.x,p.y,NULL,GetMessageExtraInfo());
dbWait(15000);
latterout=false;
gotobank=true;
}
if(red==40&&green==32&&blue==20)
{
counterloop=-1000;
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
mouse_event(MOUSEEVENTF_LEFTUP,p.x,p.y,NULL,GetMessageExtraInfo());
dbWait(15000);
latterout=false;
gotobank=true;
}
if(red==239&&green==208&&blue==33)
{
counterloop=-1000;
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
mouse_event(MOUSEEVENTF_LEFTUP,p.x,p.y,NULL,GetMessageExtraInfo());
dbWait(15000);
latterout=false;
gotobank=true;
}
if(gotobank)
{
counterloop=-1000;
dbPositionMouse (300,200);
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
mouse_event(MOUSEEVENTF_LEFTUP,p.x,p.y,NULL,GetMessageExtraInfo());
dbWait(5000);
}
}
if(gotobank)
{
modxx=50;
modyy=50;
xx=575;
yy=100;
if(red==239&&green==208&&blue==33)
{
counterloop=-1000;
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
dbWait(30000);
gotobank=false;
deposit=true;
}
if(red==245&&green==246&&blue==147)
{
counterloop=-1000;
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
dbWait(30000);
gotobank=false;
deposit=true;
}
if(red==176&&green==161&&blue==71)
{
counterloop=-1000;
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
dbWait(30000);
gotobank=false;
deposit=true;
}
}
if(deposit)
{
xx=250;
yy=100;
modxx=250;
modyy=200;
if(red==122&&green==113&&blue==112)
{
counterloop=-1000;
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
mouse_event(MOUSEEVENTF_LEFTUP,p.x,p.y,NULL,GetMessageExtraInfo());
dbWait(4000);
deposit=false;
pressdep=true;
}
if(red==96&&green==88&&blue==88)
{
counterloop=-1000;
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
mouse_event(MOUSEEVENTF_LEFTUP,p.x,p.y,NULL,GetMessageExtraInfo());
dbWait(4000);
deposit=false;
pressdep=true;
}
if(red==125&&green==115&&blue==114)
{
counterloop=-1000;
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
mouse_event(MOUSEEVENTF_LEFTUP,p.x,p.y,NULL,GetMessageExtraInfo());
dbWait(4000);
deposit=false;
pressdep=true;
}
if(red==106&&green==97&&blue==97)
{
counterloop=-1000;
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
mouse_event(MOUSEEVENTF_LEFTUP,p.x,p.y,NULL,GetMessageExtraInfo());
dbWait(4000);
deposit=false;
pressdep=true;
}
if(red==111&&green==102&&blue==102)
{
counterloop=-1000;
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
mouse_event(MOUSEEVENTF_LEFTUP,p.x,p.y,NULL,GetMessageExtraInfo());
dbWait(4000);
deposit=false;
pressdep=true;
}
}
if(pressdep)
{
counterloop=-1000;
dbPositionMouse (360,325);
mouse_event(MOUSEEVENTF_LEFTDOWN,p.x,p.y,NULL,GetMessageExtraInfo());
mouse_event(MOUSEEVENTF_LEFTUP,p.x,p.y,NULL,GetMessageExtraInfo());
dbWait(1000);
pressdep=false;
atmc=true;
modxx=50;
modyy=50;
xx=575;
yy=175;
}
/**/
GetCursorPos(&p);
color=GetPixel(hDC,p.x,p.y);
red=GetRValue(color);
green=GetGValue(color);
blue=GetBValue(color);
cred=red;
cblue=blue;
cgreen=green;
px=p.x;
py=p.y;
dbPrint(px);
dbPrint(py);
dbPrint("red:");
dbPrint(cred);
dbPrint("green: ");
dbPrint(cgreen);
dbPrint("blue: ");
dbPrint(cblue);
//xrnd=rand()%110+400-xx;
//yrnd=rand()%70+250-yy;
xpre=dbMouseX();
ypre=dbMouseY();
//dbPositionMouse (xrnd,yrnd);
if(dbLeftKey())
{
yy--;
}
if(dbUpKey())
{
xx++;
}
if(dbDownKey())
{
xx--;
}
if(dbRightKey())
{
yy++;
}
// mouse_event(MOUSEEVENTF_RIGHTUP,p.x,p.y,NULL,GetMessageExtraInfo());
// update the screen
dbSync ( );
}
// return back to windows
return;
}
Go through yourself at a wall.