Hi!

My final solution (as final as software can be [Wink] )

Altered a little bit, so if you press "p" the script will be paused and if you press any other key, the loop is exited directly without waiting.

Luziekix

code:
$ypos=1
? "Hit any key to cancel"
while $key = " " AND $count < 5 ; ca. 5 seconds
sleep 1
$count = $count + 1
$=sendkeys(" ")
get $key
AT(3,$ypos)"."
$ypos = $ypos + 1
loop
IF
$key="p"
? "PAUSED - Press any key to continue"
get $
get $
ENDIF