well, you make sense.

then have to ask how you call your setfocus?

do you have loop like:

while setfocus("window name") sleep 1 loop

and right after that:
sendkeys("{enter}")

making a compination of:
while setfocus("window name") sleep 1 loop
sendkeys("{enter}")

this should reboot nicely... well depending of what happens when user just presses enter...
_________________________
!

download KiXnet