[Release]Testsystem Source

01/28/2012 01:25 MoepMeep#16
while(true) without any sleeps isn't good ;o
01/28/2012 01:58 hoseta#17
Quote:
Originally Posted by MoepMeep View Post
while(true) without any sleeps isn't good ;o
Hmm its sure thats why i always put a Sleep(1) --> 4 :)

anyway nvm, its work fine on hotkeys, my pc is just a shit.
01/28/2012 09:41 eM0Tional#18
Quote:
Originally Posted by hoseta View Post
my pc just is shit.
u mad?
01/28/2012 10:44 Roronoa Z.#19
Quote:
Originally Posted by hoseta View Post
Hmm its sure thats why i always put a Sleep(1) --> 4 :)

anyway nvm, its work fine on hotkeys, my pc is just a shit.
Get the window handle of the client where the dll is injected & then check it with the GetForeGroundWindow function...So your keys will only affect the client in foreground and you can use multiple clients..

Example:
Code:
if((GetAsyncKeyState(VK_LSHIFT)&0x8000) && (GetForegroundWindow() == handle->kalhw))
01/28/2012 12:23 hello123456#20
added detours.h and detours.lib to folder // sdk/windows/v7.04A/lib and include

still got this error
Quote:
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuil d.targets(990,5): warning MSB8012: TargetPath(C:\***\Debug\TestsystemWINAPI.dll) entspricht nicht dem OutputFile-Eigenschaftswert (C:\Users\Sonikk69\Desktop\Testsystem\Testsystem.d ll) von Linker. Das Projekt wird daher möglicherweise nicht ordnungsgemäß erstellt. Damit dieses Problem behoben werden kann, müssen die Eigenschaftswerte für $(OutDir), $(TargetName) und $(TargetExt) dem in %(Link.OutputFile) angegebenen Wert entsprechen.
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuil d.targets(992,5): warning MSB8012: TargetName(TestsystemWINAPI) entspricht nicht dem OutputFile-Eigenschaftswert (Testsystem) von Linker. Das Projekt wird daher möglicherweise nicht ordnungsgemäß erstellt. Damit dieses Problem behoben werden kann, müssen die Eigenschaftswerte für $(OutDir), $(TargetName) und $(TargetExt) dem in %(Link.OutputFile) angegebenen Wert entsprechen.
1> LINK : Programmdatenbank "C:\***ßDebug\TestsystemWINAPI.pdb" fehlt; vollständiger Link wird durchgeführt.
1>detours.lib(detours.obj) : warning LNK4099: PDB "detours.pdb" wurde nicht mit "detours.lib(detours.obj)" oder an "C:\***\Debug\detours.pdb" gefunden; Objekt wird verknüpft, als ob keine Debuginformationen vorhanden wären.
1>detours.lib(disasm.obj) : warning LNK4099: PDB "detours.pdb" wurde nicht mit "detours.lib(disasm.obj)" oder an "C:\***\Debug\detours.pdb" gefunden; Objekt wird verknüpft, als ob keine Debuginformationen vorhanden wären.
1>detours.lib(detours.obj) : warning LNK4099: PDB "detours.pdb" wurde nicht mit "detours.lib(detours.obj)" oder an "C:\***\Debug\detours.pdb" gefunden; Objekt wird verknüpft, als ob keine Debuginformationen vorhanden wären.
1>detours.lib(disasm.obj) : warning LNK4099: PDB "detours.pdb" wurde nicht mit "detours.lib(disasm.obj)" oder an "C:\***\Debug\detours.pdb" gefunden; Objekt wird verknüpft, als ob keine Debuginformationen vorhanden wären.
1> TestsystemWINAPI.vcxproj -> C:\***\Debug\TestsystemWINAPI.dll
01/28/2012 15:54 hoseta#21
@hello123456
Try do the fallow steps, click right on project name properties -> and change Character Set to -> Use Multi-Bytes Character Set

@Roronoa Z.
i did
Code:
........
kpThread = (HANDLE)_beginthreadex(NULL,0,&kpMainThread,NULL,NULL,&kpThreadID);
.......
unsigned int __stdcall kpMainThread(void * start_parameter)
{
	while(true)
	{
                Sleep(1);
		if (GetAsyncKeyState...){...} 
                ........
	}

	return 0;
}

........
also i added if GetForegroundWindow() is kal win sleep(1000) into while else sleep(1)
and now its gr8.
01/28/2012 16:19 hello123456#22
ty got this error fixed and im able to compile it now ... only 1 error left:

Quote:
1>detours.lib(detours.obj) : warning LNK4099: PDB "detours.pdb" wurde nicht mit "detours.lib(detours.obj)" oder an "C:\***Debug\detours.pdb" gefunden; Objekt wird verknüpft, als ob keine Debuginformationen vorhanden wären.
1>detours.lib(disasm.obj) : warning LNK4099: PDB "detours.pdb" wurde nicht mit "detours.lib(disasm.obj)" oder an "C:\***Debug\detours.pdb" gefunden; Objekt wird verknüpft, als ob keine Debuginformationen vorhanden wären.
1>detours.lib(detours.obj) : warning LNK4099: PDB "detours.pdb" wurde nicht mit "detours.lib(detours.obj)" oder an "C:\***Debug\detours.pdb" gefunden; Objekt wird verknüpft, als ob keine Debuginformationen vorhanden wären.
1>detours.lib(disasm.obj) : warning LNK4099: PDB "detours.pdb" wurde nicht mit "detours.lib(disasm.obj)" oder an "C:\***Debug\detours.pdb" gefunden; Objekt wird verknüpft, als ob keine Debuginformationen vorhanden wären.
01/28/2012 16:30 MoepMeep#23
thats no error, thats a warning. You can ignore it.
01/28/2012 16:34 hello123456#24
Quote:
Originally Posted by MoepMeep View Post
thats no error, thats a warning. You can ignore it.
thx moep ;)
01/28/2012 16:54 hoseta#25
Go again to Properties -> Linker -> Command Line and add /ignore:4099
01/28/2012 18:32 pamz12#26
Code:
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(990,5): warning MSB8012: TargetPath(C:\Documents and Settings\Martin\Desktop\he\Debug\TestsystemWINAPI.dll) does not match the Linker's OutputFile property value (C:\Users\Sonikk69\Desktop\Testsystem\Testsystem.dll). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).

1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(992,5): warning MSB8012: TargetName(TestsystemWINAPI) does not match the Linker's OutputFile property value (Testsystem). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
i made samething as you saied to hello but it doesn't want to compile

EDIT: nwm i got it to work :)
01/29/2012 15:34 Rasoltan#27
I have problem with Detours 1.5 i added the .h to Headerdateien and no work the build :S
01/29/2012 17:04 bloodx#28
Guys learn the Basics of C++?
01/30/2012 19:44 pamz12#29
any1 knows how to fix speed hack as on some servers it gives c/l?
01/30/2012 20:12 bloodx#30
cuz u set to high speed? or koemv2 just got a speedcheck