Kal FindWindow help

12/15/2008 04:43 EXTEЯNAL#1
yup, what the title is saying, i'm trying to find the window of kalonline ... but failed.... dont work idk why, name is correct.... hope someone can help

Source:

Code:
// Basic Include's
#include <windows.h>
#include <iostream>

// The Namespace
using namespace std;

int main()
{
	SetConsoleTitle("Kalonline Basic Hook");
	
	HWND kalonline = NULL;

	while(kalonline == NULL)
	{
		FindWindow(NULL,"KalOnline"); // i tryed "KalOnline" and "Kal0nline" both dont work -.-...
		Sleep(100);
		printf("\nNot Found"); // if not found draw this < ...
	}

	DWORD ProcID;
	GetWindowThreadProcessId(kalonline, &ProcID);

	HANDLE hKal;
	hKal = OpenProcess(PROCESS_VM_WRITE | PROCESS_VM_READ | PROCESS_VM_OPERATION,0,ProcID);

	char input[255];

	while(true)
	{
		cin.getline(input,255);

		if(strcmp(input,"/help") == 0)
		{
			printf("\n~~~ Help Command executed ~~~\n\n");
			printf("/speed <value> - Change the local Player Speed\n");
			printf("/coordinates - Display the local Player Coordinates\n");
			printf("/editcoordinate <value> - go underground ore overground\n\n");
		}
		else if(strcmp(input,"/speed") == 0)
		{
                       // would be nice if i release it ehhh? :D
		}
		else if(strcmp(input,"/coordinates") == 0)
		{
			// would be nice if i release it ehhh? :D
		}
		else if (strcmp(input,"/editcoordinate") == 0)
		{
			// would be nice if i release it ehhh? :D
		}
		else // if there is no valid command do this ....
		{
			printf("\nError! '%s' is not a valid command! type /help for help!\n",input);
		}
	}
	CloseHandle(hKal);

	return 0;
}
12/15/2008 14:43 BenKiu#2
its never will work . Hs block it. You must make Inject Dll :>
12/15/2008 15:42 Zogga#3
Geht net.