I can run the program just fine. The problem is CLOSING it. No matter what I do, it just doesn't seem to work.
I've tried:
1) Find window, bring to front, and alt+f4 keystroke or close commands
2) Taskkill XML (see below)
Code: Select all
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1262">
<Action Name="Taskkill NHC.exe">
System.Execute(u'{eg.folderPath.System}\\taskkill.exe', u'/F /IM nhc.exe', 0, False, 2, u'')
</Action>
</EventGhost>
If anyone has any ideas, please share.