PDA

View Full Version : How to Make Hack appear



HydroQc
05-03-2008, 02:02 PM
I am not making any D3D but I would like to know what to write so when i press Insert, my normal c++ haack will appear


if (GetKeyState(VK_INSERT) &1)
{
//What code to put here??
}

ZeaS
05-03-2008, 03:59 PM
I am not making any D3D but I would like to know what to write so when i press Insert, my normal c++ haack will appear


if (GetKeyState(VK_INSERT) &1)
{
//What code to put here??
}


uhm not sure i think you will need a "always top" function so you can call it with a hotkey, google for it..

http://www.codeproject.com/KB/cpp/KeepWindowAlwaysOnTop.aspx

but not sure ^^

Fragment
05-06-2008, 02:46 PM
I am not making any D3D but I would like to know what to write so when i press Insert, my normal c++ haack will appear


if (GetKeyState(VK_INSERT) &1)
{
//What code to put here??
}
Looks like i'm on a roll answering your questions buddy :D
Use a thread or trainer to do what you said^^


//GLOBALLY DECLARE THIS BOOL! DO NOT PUT IT IN ANY FUNCTION.
bool show;

//Put this on a timer, or if you know how, use a thread
if (GetKeyState(VK_INSERT) &1)
{
show = !show;
if (show == true)
{
Hide();
}
else
{
Show();
}
}

/*Now find some function that will run when the program starts up, and find a way to make it make the hack stay on top. If you're using borland, you would use this:*/
Form1->FormStyle = fsStayOnTop;


Good luck.

HydroQc
05-06-2008, 03:21 PM
Well i am not so good in bool...Would you explain me a bit how to do it?? How to declare this thing...

Fragment
05-07-2008, 02:06 PM
Well i am not so good in bool...Would you explain me a bit how to do it?? How to declare this thing...
A bool is a value that is either 0 or 1. And look. How about you go to where your hack code is, And you can put the bool declaration even before the #include section. Just put in there,

bool show;