(AGK version: 2.0.16)
Submitted: 2017-04-19 21:13:56
do
if x > 5000 then exit	`exit this loop...
if x = 1 then render()	
if x = 2 then swap()	
print("Render() ")
print("This information will be placed on the screen only once...")
print("The back buffer will be flipped( swap() ) so you can see the print...")
print("Wait for the counter to run out...")
print("The program will exit automatically...")
inc x
loop

`swap the backBuffer once more to remove further prints...
swap()
	
`exit this other loop if left mouse button pressed...
do
if GetPointerState()=1 and GetPointerPressed()=1 then exit	
Print("Hit Left Mouse Button to Exit...")
sync()
loop

`the VOID.....
Print("Exiting.......")
sync()
sleep(2000)

end
Help make AGK better by submitting an example for this command!
(All examples are subject to approval)
Login to post an example of your own.