heres and example.... and a good one to... as you can see iv just made the changes to your code
PHP Code:
#include <windows.h>
using namespace std;
int main()
{
HWND hwnd = NULL; // globally track main window
HDC hdc; // handle to a device context
// set the foreground color to random
HDC hdc = GetDC(hwnd);
SetTextColor(hdc, RGB(rand()%256,rand()%256,rand()%256));
// set the background color to black
SetBkColor(hdc, RGB(0,0,0));
// finally set the transparency mode to transparent
SetBkMode(hdc, TRANSPARENT);
while(true)
{
if(GetAsyncKeyState(VK_F7))
{
HWND hdc = FindWindow(NULL, "Halo");
if(!hwnd)
{
TextOut(hdc,0,0,"error finding halo",strlen("error finding halo"));
}
else
{
TextOut(hdc,0,0,"Aimbot ON",strlen("Aimbot ON"));
}
}
}
// release the dc
ReleaseDC(hwnd,hdc);
}