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;
}






