Mark,
It is possible to hook to Adobe Reader 7 main menu from VFP. Through this hook VFP program can enumerate opened Acrobat documents (windows), close any document or all documents, close the Acrobat application.
The code requires membership, but comments around it may give you an idea how it works.
Accessing Adobe Reader 7.0 main menu from VFP applicationhttp://www.news2news.com/vfp/?example=495To create a virtual click on an item from Acrobat main menu API function SendMessage is used:
= SendMessage(hAcrobatWindow, WM_COMMAND, m.nCommand, 0)
hAcrobatWindow is Acrobat main window handle.
nCommand is menu item id, for example nCommand=6026 closes the Acrobat.