Can anyone translate this code ?

Posts 1–15 of 28 · Page 1 of 2
Can anyone translate this code ?
Can anyone translate this code :
Code:
bool StemOn = false;
While(true)
{
    if(StemOn){WriteProcessMemory(AntiNoobIsGay);
    if(kbhit)
    {
     char SomeTempFrenchieLonerChar_AntiNoob = ' ';
     SomeTempFrenchieLonerChar_AntiNoob = getch();
     switch(SomeTempFrenchieLonerChar_AntiNoon)
     {
           case 'a': //For AntiNoob Is Gay
           If(StemOn/*Tis A Bool*/){StemOn = false;}else{StemOn = true;}
     }
}
Lol, thats my code, I made it when I was pissed of at antinoob, which is now banned I think. Anyway, what is it you want me to do for you?
Tell him what the code means/does ...
What / who is antinoob and what is the point of the whole thing?
Code:
bool StemOn = false;
While(true)
{
    if(StemOn){WriteProcessMemory(Handle,Address,Buffer,Size,0);
    if(kbhit) //If someone hits a button on there keybored
    {
     char ReturnChar = ' '; //This is where we store the returned char
      ReturnChar = getch(); //ReturnKey = Last Pressed Key
     switch(ReturnChar)//If you don't know what this is.Relearn C++
     {
           case 'a': //If Return Char = a
           If(StemOn){StemOn = false;}else{StemOn = true;} // Switch bool
     }
}
It switchs a bools status from true to false, false to true.
Only really useful if your making a DLL, or can acquire key presses differently.
Code:
bool StemOn = false;
While(true)
{
    if(StemOn){WriteProcessMemory(Handle,Address,Buffer,Size,0);
    if(kbhit) //If someone hits a button on there keybored
    {
     char ReturnChar = ' '; //This is where we store the returned char
      ReturnChar = getch(); //ReturnKey = Last Pressed Key
     switch(ReturnChar)//If you don't know what this is.Relearn C++
     {
           case 'a': //If Return Char = a
           StemOn = !StemOn
     }
}
This is easier?
It switchs a bools status from true to false, false to true.
Only really useful if your making a DLL, or can acquire key presses differently.
This is easier?
None of you guys posted any help haha, sillies:

1. It uses bool but it's not switching by any means merely the common rudamentary method of it.

2. It's obviousally writing memory itself therefore a .dll would be useLESS, not useful...

3. It's simply writing writing memory you define, if StemOn = True. Of course.

Granted: There must be quite a bit more to this program. This snippet could only be so few things, though.
Quote Originally Posted by Toymaker View Post
None of you guys posted any help haha, sillies:

1. It uses bool but it's not switching by any means merely the common rudamentary method of it.

2. It's obviousally writing memory itself therefore a .dll would be useLESS, not useful...

3. It's simply writing writing memory you define, if StemOn = True. Of course.

Granted: There must be quite a bit more to this program. This snippet could only be so few things, though.
hey, Fuck you, I made that code, thats like 99% of it.

Quote Originally Posted by castaway View Post
Code:
bool StemOn;
While(True)
{
if (GetKeyState(VK_F1) &1)
{
       StemOn = !StemOn
}
if(StemOn){WriteProcessMemory(Handle,Address,Buffer,Size,0);
}
}
I would use it like this
I tried that, it doesn't work with my compiler. Well it didn't on Dev-C++. Works with VS.
Code:
bool StemOn;
While(True)
{
if (GetKeyState(VK_F1) &1)
{
       StemOn = !StemOn
}
if(StemOn){WriteProcessMemory(Handle,Address,Buffer,Size,0);
}
}
I would use it like this
bool StemOn = false;
While(true)
{
if(StemOn){WriteProcessMemory(AntiNoobIsGay);
if(kbhit)
{
char SomeTempFrenchieLonerChar_AntiNoob = ' ';
SomeTempFrenchieLonerChar_AntiNoob = getch();
switch(SomeTempFrenchieLonerChar_AntiNoon)
{
case 'a': //For AntiNoob Is Gay
If(StemOn/*Tis A Bool*/){StemOn = false;}else{StemOn = true;}
}
}
lol... it looks like you want some one to translate some code for you so you understand it

however, you took out some of the variables passed and renamed all the variables.

if "StemOn" is true, write to memory... with incorrect parameters
kbhit doesn't look to be defined, but it chesk it its true.
Sets a char to '', passes what getch retuls to the char, passes it to a switch statement which checks if the char is a.

If it is a, it switches "StemOn" to its opposite value...
Quote Originally Posted by crytical
None of you guys posted any help haha, sillies:
1. It uses bool but it's not switching by any means merely the common rudamentary method of it.
2. It's obviousally writing memory itself therefore a .dll would be useLESS, not useful...
3. It's simply writing writing memory you define, if StemOn = True. Of course.
Granted: There must be quite a bit more to this program. This snippet could only be so few things, though.
Quote Originally Posted by jetamey
hey, Fuck you, I made that code, thats like 99% of it.
That wasn't offensive, Lol. I'm just suprised you can write code without understanding it i was pretty sure me and Dave covered the only potential translations.
Quote Originally Posted by Toymaker View Post
That wasn't offensive, Lol. I'm just suprised you can write code without understanding it i was pretty sure me and Dave covered the only potential translations.
You can't write code if you don't understand it.
That was my point? And kindof a comment towards you that you might want to comment :P
oommgg, I don't get this conversation. I take offense to easily, sorry. Your right.
Posts 1–15 of 28 · Page 1 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

Talk with us