do { Clientdll = GetModuleHandleA("client.dll"); cout << "getting it... \n"; Sleep(20); }while(!Clientdll);
i would really appreciate if somebody would tell me what's going wrong in this code.
the full source is the following: (btw the onground address is checked (25.6.2011) and it's working)
#include "stdafx.h" #include <windows.h> #include <iostream> using namespace std; void bunnyhop() { HMODULE Clientdll; do { Clientdll = GetModuleHandleA("client.dll"); cout << "getting it... \n"; Sleep(20); }while(!Clientdll); cout << "got the module handle!!!"; if( (*(int*)((DWORD)Clientdll + 0x53D9D8) == 0) && (GetAsyncKeyState(VK_MENU)<0) ) // VK_MENU = Alt, offset can change after updates { keybd_event(VK_SPACE, 0x39, 0, 0); Sleep(60); keybd_event(VK_SPACE, 0x39, KEYEVENTF_KEYUP, 0); } Sleep(1); } int main () { while (!GetAsyncKeyState(VK_F10)) { bunnyhop(); } return 0; }
thanks for your attenction!
Comment