help fixng this in to a program

01/26/2011 18:16 meckgarrin#1
here a c++ code for auto looting can some one help me getting it working for ipu and others





#include "stdafx.h"
#include <windows.h>
#include <iostream>
#include <stdlib.h>

using namespace std;

void main()
{
HWND target = FindWindow(0, "CABAL");
LPARAM lParam = (1 | (57<<16)); // OEM Code and Repeat for WM_KEYDOWN
WPARAM wParam = VK_SPACE;
bool autoloot;

// main loop
while(target)
{
if (GetAsyncKeyState(0x79)) // F10
exit(0); // exit game

if (GetAsyncKeyState(0x78)) // F9
autoloot =! autoloot; // enable or disable autoloot

if (AUTOLOOT == 1)
PostMessage(HWND_BROADCAST, WM_KEYDOWN, wParam, lParam); // send space to loot items

Sleep(1000); // take a break to prevent consuming lots of resources
}
}
01/27/2011 14:48 OsamaPL#2
Haha noob macro-like program.
01/27/2011 20:09 redsong#3
Quote:
Originally Posted by meckgarrin View Post
here a c++ code for auto looting can some one help me getting it working for ipu and others





#include "stdafx.h"
#include <windows.h>
#include <iostream>
#include <stdlib.h>

using namespace std;

void main()
{
HWND target = FindWindow(0, "CABAL");
LPARAM lParam = (1 | (57<<16)); // OEM Code and Repeat for WM_KEYDOWN
WPARAM wParam = VK_SPACE;
bool autoloot;

// main loop
while(target)
{
if (GetAsyncKeyState(0x79)) // F10
exit(0); // exit game

if (GetAsyncKeyState(0x78)) // F9
autoloot =! autoloot; // enable or disable autoloot

if (AUTOLOOT == 1)
PostMessage(HWND_BROADCAST, WM_KEYDOWN, wParam, lParam); // send space to loot items

Sleep(1000); // take a break to prevent consuming lots of resources
}
}
doubt u'll get anything with taht , but GL !