timer=CreateTimer(50) ; for 50 fps Repeat WaitEvent() If EventID()=$4001 ; timertick If EventSource()=timer ; optional, if you have more than 1 timer.. ; update EndIf EndIf If EventID()=$803 quit=true ; windowclose Until quit
So, each time you press a key just add +1 to your coordinate-variable, the updates go automatically.