oWSH = CreateObject( "WScript.Shell" ) oWSH.AppActivate( oMailItem.Application.ActiveInspector.Caption )>i am running outlook automation - when the email has been prepared and ready to send, i would like the email to appear as the front window - but VFP pops up in front of the email - as a temporary solution i minimize the VFP screen thus:
>_SCREEN.WINDOWSTATE=1 >>
>IF tlOpenEmail > .display() > olNormalWindow = 0 > > loInspector = .GetInspector() > loInspector.WindowState = olNormalWindow >endif >>