>DECLARE INTEGER FindWindow IN user32; > STRING lpClassName, STRING lpWindowName > > hwnd = FindWindow(.NULL.,[Program Error]) > > > DECLARE INTEGER SendMessage IN user32; > INTEGER hWnd,; > INTEGER Msg,; > INTEGER wParam,; > INTEGER lParam > > DECLARE INTEGER SetForegroundWindow IN user32 INTEGER hwnd > > > if hwnd > 0 > SetForegroundWindow(hwnd) > keyboard '{ALT-C}' > endif > > >replace the KEYBOARD statement with the WScript.Shell object's method of SEANDKEYS.
LOCAL oShell && as WScript.Shell oShell = CREATEOBJECT("WScript.Shell") oShell.SendKeys("C:\MyPath\MyFile.ext")check the web site for key stroke used with this method at