Anti-Idlekick 
60 comments I'm sure everyone who plays CS2D knows how annoying it is when you get idle kicked from a server when you simply needed to go to the loo, especially if you had a flashy KpD you were planning to take a screenie of. So, I decided to make this. It's a simple program that emulates the keys W, A, S and D every 15 seconds to make your player move a bit, this will make the idle-kicker think you are still active and thus you will not be kicked.
To use it, simply run the program and then go back to your CS2D client. After 3 seconds it will begin moving your player about. Please note that if you run the program and select something such as a text-editor ( or any other program that takes text input ) it will slowly flood it with 'wasd', so be careful.
And for those of you who are going to say it's a virus, just go grow a pair.
Also, I did not include screenshots because they are not neccisary whatsoever.
To use it, simply run the program and then go back to your CS2D client. After 3 seconds it will begin moving your player about. Please note that if you run the program and select something such as a text-editor ( or any other program that takes text input ) it will slowly flood it with 'wasd', so be careful.

And for those of you who are going to say it's a virus, just go grow a pair.
Also, I did not include screenshots because they are not neccisary whatsoever.
edited 1×, last 12.07.11 06:11:37 pm

Comments
60 commentsLog in!
You need to log in to be able to write comments!Log in
According to the c++ standard, main should be of type int, and doesn't necessarily need to return a value. If there's no return value, "return 0" is assumed. This is because "main" is a special function.
int main(void){...} and int main(){...} are the same in c++ standard.
DannyDeth, you should link dll's that aren't standard on windows machines ( like the libgc_blabl.dll). In visual studio u can do this by setting the option /MT. In g++, u will just have to read the fucking manual
they kbd_event function has been superseded by SendInput ( http://msdn.microsoft.com/en-us/library/windows/desktop/ms646310(v=vs.85).aspx )
Also you should use SetFocus and SetForegroundWindow to set cs2d as the window to send the input keys to.
Otherwise, when someone quickly has to send an email while playing cs2d, WASD will appear in his email..
Altogether: room for improvement.
int main(void){...} and int main(){...} are the same in c++ standard.
DannyDeth, you should link dll's that aren't standard on windows machines ( like the libgc_blabl.dll). In visual studio u can do this by setting the option /MT. In g++, u will just have to read the fucking manual

they kbd_event function has been superseded by SendInput ( http://msdn.microsoft.com/en-us/library/windows/desktop/ms646310(v=vs.85).aspx )
Also you should use SetFocus and SetForegroundWindow to set cs2d as the window to send the input keys to.
Otherwise, when someone quickly has to send an email while playing cs2d, WASD will appear in his email..
Altogether: room for improvement.
@
sixpack:
Defining main as void is bad practice, it should return an integer as this is used to check if the program executed properly. It's a UNIX standard.

Defining main as void is bad practice, it should return an integer as this is used to check if the program executed properly. It's a UNIX standard.
@
Infinite Rain:
would make no difference, but I am not going to sit and argue about this.

Code:
1
void main(void)
would make no difference, but I am not going to sit and argue about this.

@
sixpack:
No, return 0 is required there, since it HAVE to return an integer value.
If it would look like that:
Then you're right, but in this case the main function looks like that:
Only thing that is void there, is arguments ;P
@File:
Amazing!

No, return 0 is required there, since it HAVE to return an integer value.
If it would look like that:
Code:
1
void main(void)
Then you're right, but in this case the main function looks like that:
Code:
1
int main(void)
Only thing that is void there, is arguments ;P
@File:
Amazing!
This is quite a simple tool but unfortunately only works on a Windows environment. The code could have been universal but this is not such an issue. The windows binary included seems to have no (detectable at least) virus. Only 1/43 on VirusTotal.
gcc is required though
P.S.: No need to return 0 in main, since it's void.
gcc is required though
P.S.: No need to return 0 in main, since it's void.
Anti_AFK.exe - System Error has written:
The program can't start because libgcc_s_dw2-1.dll is missing from your computer.Try reinstalling the program to fix this problem.
Now what?

@
plaYnice:
Wow, this is clientside so that you don't get kicked out of someone else's server. I dont see how hard it is to understand ..

Wow, this is clientside so that you don't get kicked out of someone else's server. I dont see how hard it is to understand ..

@
DannyDeth: Man, already have this option in NEW GAME.
we don't need this script, but i like it

we don't need this script, but i like it
@M-n-M:
This is really not meant for long idles, it is just if you need to do something QUICKLY but you don't want to lose your score.
This is really not meant for long idles, it is just if you need to do something QUICKLY but you don't want to lose your score.


sorry danny i dont like this here..
you really did a good work but, i always kick idlers if there are any on my servers.. idlers ruin the gameplay, unbalance the team and make players leave the server..
now i have to set the idle kick to 14 seconds lol..
anyway 5/5 work and idea even if i dont really like it..
hope you understand
you really did a good work but, i always kick idlers if there are any on my servers.. idlers ruin the gameplay, unbalance the team and make players leave the server..
now i have to set the idle kick to 14 seconds lol..
anyway 5/5 work and idea even if i dont really like it..
hope you understand