Is there a way to format auto-it code to have space so it can look more neat? Anyways... In the code below my while $i>0 .... wend only loops once and does not go infinitely like I want, would someone now how I can fix this? Also with the while loop it does not tab to my notepad and without while loop it does, is there a reason behind this as well? Thank you! Edit: Forgot to mention that it also closes the gui after it loops once #include <GUIConstants.au3> #include <GUI