AGK is geared more for games so expect to use a do loop.
Here is an example.
// Project: test_loop
// Created: 2015-04-15
// set window properties
SetWindowTitle( "test_loop" )
SetWindowSize( 1024, 768, 0 )
// set display properties
SetVirtualResolution( 1024, 768 )
SetOrientationAllowed( 1, 1, 1, 1 )
global text as string
text = "Hello "
gosub MySubroutine
do
Print( text )
Sync()
loop
MySubroutine:
text = text + "World"
return
I understand it is not a necessity but you won't really know whats going on. Of course, you could write to files as an output but it would probably be easier to use the screen, if you're just playing around.