Hey. I never really used hotkeys because it was pretty useless to me but now im kinda trying new things. It really isn't new to me but for some reason, nothing happens when i press it ingame.
Here the code:
credits: @giniyat101 for wallhack sourceCode:#include "stdafx.h" //idk why i bothered putting this, im sure y'all would know anyway // rec is false btw. so i didnt bother declaring it in here while(true) { if(GetAsyncKeyState(VK_NUMPAD0)<0) {rec =! rec; Beep(500,500);} if(rec==true) { memcpy((VOID*)0x6D2894, "\x00\x00\x00\x00\x00\x00", 6); } if(rec==false) { memcpy((VOID*)0x6D2894, "\x01\x01\x01\x01\x01\x01", 6); } }
Last edited by desertflame; 07-02-2012 at 06:57 PM. Reason: important
Yes to make it an On and off hotkey you would have to include else after the first part so if its pressed again it will turn off
make it &1 not <0
good luckCode:if(GetAsyncKeyState(VK_NUMPAD0)&1) {rec = !rec ; Beep(500,500);}
try this
Code:if(GetAsyncKeyState(VK_NUMPAD0)&1) { wall = !wall; } if(wall) { memcpy((VOID*)0x6D2894, "\x00\x00\x00\x00\x00\x00", 6); } else { memcpy((VOID*)0x6D2894, "\x01\x01\x01\x01\x01\x01", 6); }
desertflame (07-03-2012),[mi5 (07-03-2012)
IDK for me whit &1 was never working i am using <0 it's work perfect when the key is not persed the value is + when you press it the value is something like -9000...
@desertflame when i added first time hotkey's i have some problem like this my problem was that Xcrap after 10-15 s killed my loop maybe is killing you'r sto
desertflame (07-03-2012)
desertflame (07-03-2012)
try :
Code:bool wall = false; if(GetAsyncKeyState(VK_Hotkey)) { hack = !hack; } if(wall) { memcpy((VOID*)0x6D2894, "\x00\x00\x00\x00\x00\x00", 6);//on } else { memcpy((VOID*)0x6D2894, "\x01\x01\x01\x01\x01\x01", 6);//off }
[mi5 (07-03-2012)