You shouldn't need a REPEAT loop. Just check the Loop Script option. That will keep running the script.
SETCURSOR -1 makes the cursor invisible. Works here. However it becomes visible when you are above the window, so you can select menus and when you are in the button area, so you can click a button. Perhaps I should change it so it's only visible when you are at the top in the menu bar.