Need help,
I was wondering about, that the autoit function ControlSendPlus doesn't work for Warhammer, well... some games got a special thing in there to inactivate stuff like that, but usually it works with functions such as sendinput in c++ and Im wondering why this doesn't work...
Code:
#define _WIN32_WINNT 0x0501
#include <iostream>
#include <windows.h>
#include <time.h>
#include <stdlib.h>
using namespace std;
int main()
{
INPUT InputData;
INPUT *key;
HWND windowHandle = FindWindow(NULL, "Warhammer: Age of Reckoning, Copyright 2001-2008 Electronic Arts, Inc.");
DWORD thisThread,otherThread;
int iEvents;
thisThread=GetCurrentThreadId();
otherThread=GetWindowThreadProcessId(windowHandle,NULL);
AttachThreadInput(thisThread,otherThread,true);
// 0x4D
InputData.type = INPUT_KEYBOARD;
InputData.ki.wVk = 0x4D;
InputData.ki.wScan = 35;
InputData.ki.dwFlags = 0;
InputData.ki.time = time(NULL);
InputData.ki.dwExtraInfo = 0;
iEvents = SendInput(1, &InputData, sizeof(InputData));
return 0;
}
Is it my code or is it the .exe which disables this function... if it's the .exe, there should be a possibility to disable it with ollydbg, right?
Btw. Is there any possibility to create a path bot without packets? Just noticed, that there are some autoit scripts, which run through waypoints...
regards