WarRock EU - Code Snippets

04/18/2011 12:31 Raz9r#3196
bool asd;

while( 1 ) {
if( GetAsyncKeyState(VK_F8) )
asd = !asd;
if( asd ) {
// do functions
}
Sleep(30);
}
04/18/2011 12:43 Yazzn˜#3197
Quote:
Originally Posted by ~ r a z e r _ View Post
bool asd;

while( 1 ) {
if( GetAsyncKeyState(VK_F8) )
asd = !asd;
if( asd ) {
// do functions
}
Sleep(30);
}
oder

while(1) {
if(GetKeyState(VK_F8)>0){
// do functions
}
}
04/18/2011 13:47 Bionomic™#3198
Quote:
Originally Posted by ~ r a z e r _ View Post
bool asd;

while( 1 ) {
if( GetAsyncKeyState(VK_F8) )
asd = !asd;
if( asd ) {
// do functions
}
Sleep(30);
}
Quote:
Originally Posted by Yazzn˜ View Post
oder

while(1) {
if(GetKeyState(VK_F8)>0){
// do functions
}
}

Danke euch beiden :)
Probiere mal erst Yazzn seine source :P
Habt beide ein THX :P
04/18/2011 13:48 damner'#3199
braucht ihr jetzt meinen code???
oder könnt ihr mir vll den fehler korigieren???
04/18/2011 13:58 Neqqa™#3200
Quote:
braucht ihr jetzt meinen code???
oder könnt ihr mir vll den fehler korigieren???
drück in C++ mal ALT+F7
[Only registered and activated users can see links. Click Here To Register...]

dann dort .dll auswählen ;)
04/18/2011 17:34 Bionomic™#3201
Quote:
Originally Posted by Yazzn˜ View Post
oder

while(1) {
if(GetKeyState(VK_F8)>0){
// do functions
}
}
Hast den sleep nicht eingebaut?

void lala()
{
while(1) {
if(GetKeyState(VK_F8)>0){
funktion
}
Sleep(30);
}
}

Ist das so richtig?
04/18/2011 20:08 CyberRazzor#3202
Bio hast glaube ich recht sonst überlastet cpu.
04/18/2011 20:49 Bionomic™#3203
Quote:
Originally Posted by CyberRazzor View Post
Bio hast glaube ich recht sonst überlastet cpu.
Der hack startet dadruch sonst überhaupt nicht o,O

€: Es geht danach leider nicht mehr aus :(
hier der code:

Code:
void GlassWalls()
{
while(1) 
{
if(GetKeyState(VK_DELETE)>0)
{
*(int*)ADR_GLASSWALLS = 4;}Sleep(30);
}
}

Dann ein extra HackThread,ohne sleep.

void HackThreat()
{
for(;;)
{
GlassWalls();
}
}
Weiß einer wieso?
04/18/2011 21:22 Son_Goten#3204
€Bio....

hier mal eine andere Methode:

Code:
bool Blabla = false;
void Bubi()
{
if(GetAsyncKeyState(VK_Dings)&1)
{
Blabla = Blabla==false
}
if(Blabla==true)
{
//funk
if(GetAsyncKeyState(VK_Dings)&1)
{
Blabla = Blabla==false
}
}
}


kann sein das ich i was verkehrd gemacht habe bin per I Pod drin ....
04/18/2011 22:11 CyberRazzor#3205
bool GlassWallPatch = false;
void GlassWallsFunc()
{
if(GetAsyncKeyState(VK_F12)&1)
{
*(LONG*)(ADR_GLASSWALLS) = 0;
GlassWallPatch = GlassWallPatch==false
}
if(GlassWallPatch==true)
{
if(GetAsyncKeyState(VK_F12)&1)
{
*(LONG*)(ADR_GLASSWALLS) = 4;
GlassWallPatch = GlassWallPatch==false
}
}
}
VOID HACKTHREAD()
{
for ( ; ; )
{
GlassWallsFunc();
Sleep(120);
}
}
04/19/2011 01:41 FardAlterEgo#3206
unnötig
04/19/2011 09:10 Bionomic™#3207
Quote:
Originally Posted by CyberRazzor View Post
bool GlassWallPatch = false;
void GlassWallsFunc()
{
if(GetAsyncKeyState(VK_F12)&1)
{
*(LONG*)(ADR_GLASSWALLS) = 0;
GlassWallPatch = GlassWallPatch==false
}
if(GlassWallPatch==true)
{
if(GetAsyncKeyState(VK_F12)&1)
{
*(LONG*)(ADR_GLASSWALLS) = 4;
GlassWallPatch = GlassWallPatch==false
}
}
}
VOID HACKTHREAD()
{
for ( ; ; )
{
GlassWallsFunc();
Sleep(120);
}
}
Quote:
Originally Posted by FardAlterEgo View Post
unnötig
@CyberRazzer

Könnte man das nicht durch noch ein Bool ohne einen Off Wert machen?
In diesem Fall 0.

@Fard
Dann mach es besser^^
04/19/2011 09:17 Yazzn˜#3208
oder noch besser:

Quote:
Originally Posted by ~ r a z e r _ View Post
bool asd;

while( 1 ) {
if( GetAsyncKeyState(VK_F8) )
asd = !asd;
if( asd ) {
// do functions
}
Sleep(30);
}
04/19/2011 10:44 Norbert8#3209
Quote:
Originally Posted by bl4ck0ps7 View Post
Eine Frage:
Kann mir wer sagen wie ich die VC++ verzeichnisse richtig angeben kann?
(wegen "d3dx9.h")
Die Methode über Extras->Optionen->"Projekte und Projektmappen"->"VC++ Verzeichnisse" ist veraltet! (Steht da zumindest).
Pls Help!

MFG
wir brauchen keine neuen c&p!!!
04/19/2011 11:03 Son_Goten#3210
Quote:
Originally Posted by Norbert8 View Post
wir brauchen keine neuen c&p!!!


reg dich mal ab kleiner ;)

macht eh keien unterschied mehr ........
und viele gute coder haben klein angefangen