Maybe I'm outta my league here, but couldn't you do this instead?
oShell.sendkeys(chr(13))
Since it needs a string and "^C" might been seen as two characters instead of the escape code.
>>From MSDN: The SendKeys syntax is
>> WshShell.SendKeys (bstrKeys As String, [pvarWait])
>>
>>Tried this, too.
>>
>>oSHell.sendkeys("^C")
>>oSHell.sendkeys("^C",.f.)
>
>I meant parenthesis, sorry. Some keycodes don't work from within Fox. In this case, you'd need to use either the SendMessage() or PostMessage() API calls to send the appropriate keycodes to the window.
- Erik Niese-Petersen
Crazy Dane in USA.