>>>This code works for me. Made a comment in Command window go to next line and shows MessageBox().
>>
>>Right, but as I said before, it's not persistent. Put the cursor on the line after the comment and hit "Enter", and it goes away.
>
>I don't know why, but this works :-))
>Maybe becuase it executes comments as command and that way it is saved in _command.prg?
KEYBOARD "* " + tcCommand
KEYBOARD '{SHIFT+UPARROW}' +'{ENTER}'
DoSleep(.05)
Bingo. That forces the "Execute Selection" functionality and bypasses whatever keeps the Command Window from executing commands while a program is running. Thanks, Borislav!