Hello Jochen!

Now Iīve tried:

code:
-------------------------------------------------
? "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 $
ENDIF
-------------------------------------------------

My problem now: I want the script to pause when I press the "p"-key in the time-out-period.
But if I use the above code, it donīt pauses and waits for an key-input at the last "GET $"-command.
The "FLUSHKB"-command doesnīt seem to help.
KIX32.EXE v4.20 seem to do the same as KIX32.EXE v3.63. Where am I wrong ?

btw. On KIX v4.20 the example from you donīt seem to run using the SENDKEYS-command.
The script just continues without the "waiting-loop".

Luziekix

ps. to SEALEOPARD: sorry forgetting to mention my used KIX-version.