Window opener opens window again and again due to Void loop

Arduino_Automation:
Should I also use "const int" when putting it above the sketch?

Only if its value is constant, which it isn't