Well I thought that once I put the Hide Window command the program would stop at that but then I found out all I needed was to put in sync...It will work as long as you dont put anything like if spacekey()=1 then do something..Heres the code
+ Code SnippetHide Mouse
Hide Window
sync
DO
SYNC
EXECUTE FILE "C:\WINDOWS\Notepad.exe","","",1
SYNC
LOOP
End