Close Navision automatically

MCMC Member Posts: 19
edited 2006-10-10 in Navision Attain
I want to close Navision automatically, so I use the following sentences in a form:

CREATE(wscript);
wscript.SendKeys('%{F4}');

This executes ALT+F4 and close the aplication.
This is running ok, but the problem is the use of SendKeys. If the user it’s running another one aplication, the system close this aplication but not Navision.

How can I avoid this? I want to close Navision.

Thanks in advance

Comments

  • kinekine Member Posts: 12,562
    Try to search for how to activate Navision (switch Navision application as active application) - may be some automation will help you.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
Sign In or Register to comment.