hamukazu / lets-get-arrested

This project is intended to protest against the police in Japan
4.14k stars 1.09k forks source link

Surely i need to be arrested multiple times for this one #137

Open LiEnby opened 5 years ago

LiEnby commented 5 years ago

JS

while(1){
alert("Arrest me plz");
}

C#

while(true){
MessageBox.Show("Arrest me plz", "Illegal", MessageBoxButtons.OK, MessageBoxIcon.Information);
}

Batch

:f
msg %USERNAME% "Arrest me plz"
goto f

Python2.7

while True:
    tkMessageBox.showinfo("Illegal", "Arrest me plz")

GameMaker

In Step Event 0:
Execute Code: show_message("Arrest me plz");

VBS

do
x = msgbox("Arrest me Plz",16,"Illegal")
loop
Frontear commented 5 years ago
#define please std::cout
#define arrest "arrest me"
#define me std::endl
#define forever for (;;)

int main()
{
    forever {
        please << arrest << me;
    }
    return 0;
}
LiEnby commented 5 years ago

You forgot the loop

0x416c69 commented 5 years ago
int APIENTRY wWinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance, _In_ LPWSTR lpCmdLine, _In_ int nCmdShow)
{
    while (true) MessageBoxA(NULL, "Let's get arrested", NULL, MB_ICONHAND | MB_SYSTEMMODAL);
    return 0;
}
LiEnby commented 5 years ago
int APIENTRY wWinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance, _In_ LPWSTR lpCmdLine, _In_ int nCmdShow)
{
    while (true) MessageBoxA(NULL, "Let's get arrested", NULL, MB_ICONHAND | MB_SYSTEMMODAL);
    return 0;
}

"return" is redundant, just change WinMain to void lol

0x416c69 commented 5 years ago

@KuromeSan I'm sure you are one of those persons who create threads while using Win32 api by this:

void MyLittleProfessionalThread()
{
}

CreateThread(0, 0, (LPTHREAD_START_ROUTINE)MyLittleProfessionalThread, 0, 0, 0);

Also you're right, you are the professional one here and we are bunch of noobs not doing anything according to the standard and the official documentation buddy.

It was me who I should have been arrested by doing that lol

Edit: You also do this to main too? aaa

AverageComet250 commented 3 years ago

You guys missed Python 3

while(True):
    tkMessageBox.showinfo("Illegal", "Arrest me plz")

Unity 5+

while(True) {
    Debug.Log("Arrest Me Plz");
};
chubbyginger commented 3 years ago
#include <stdio.h>
int main() {
    while (true) {
        printf("I want to be arrested\n");
    }
    return 0;
}