Keyz?

Posts 1–11 of 11 · Page 1 of 1
Keyz?
Hello everyone.

Okay. Since I have heard of detection of GetAsyncKeyState, what can we use? Please, don't tell just a function name, tell a snippet for ex. changing the bool. like: if(key(F5)){b=!b} where key is function. Just I want to know how to detect key press.
its not detected. using getasync as a loop is detected
Hmm. And how to use it NOT in the loop? =/
It's not detected.
If you have a good base with the good functions, the function will work.
U need a good base!
Quote Originally Posted by WanQuiSheR View Post
U need a good base!
Yeah.. I Agree
good base has nothing to do with it...
Hmm. Here is that I used for test. Im injecting to crossfire.exe. When message appears, I dont press anything and XTrap SHOWING TEH abnormal memory access detected . so, what is detected there?

P.S. It works for other programs such as calc.exe, CF_G4box.exe

Code:
#include "windows.h"
#include <iostream>
using namespace std;

DWORD WINAPI Main(LPVOID)
{
	// while(GetModuleHandleA("CShell.dll") == NULL)
	// Sleep(150);

	for(;;)
	{
		__asm pushad;

		if(GetAsyncKeyState(VK_F2)&1)
			ExitProcess(0);

		Sleep(100);

		__asm popad;
	}

	return 0;
}

BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
	DisableThreadLibraryCalls(hDll);
	if ( dwReason == DLL_PROCESS_ATTACH )
	{
		MessageBoxA(0, "Inject Completed!", "Coded by YaLTeR", 0);
		CreateThread(NULL, NULL, Main, NULL, NULL, NULL);
	}
	return TRUE;
}
So, what's wrong with this base???
Like Swift Said GetAsyncKeyState Isnt Detected As Long As You Dont Use It As A Loop
hmm. how to use it not in the loop?

P.S. Swift, disasmed ur hack. do{}while() loop.
Posts 1–11 of 11 · Page 1 of 1
This thread is closed for replies.

Tags for this Thread

None

Talk with us