Hi,
found these packages when searching for a solution to the business of closing an application gracefully. Seems to me that if I can find the Applications topmost window and get its handle I can then close gracefully rather than just terminating the process.
I tried using API (EnumWindows with GetWindowText in the Enumproc in order to find the right app), but all I could get was a list of 185 processes with no window title :-{
Then I found a reference to thses packages, but there seem to be no demos. Stuff looks great but how do I use it?
Does TaskbarWindows do this and how do I call it?
TIA Nick
How to list TaskbarWindows?
Just try this:
Process('someProcess.exe').Close;
This will try to close the app gracefully. It will send a WM_CLOSE message to the main window. Please note that while it usually closes down apps like IE and Outlook without any problem, apps like WinWord or Notepad will open a message box asking the user whether he wants to save the changed files. Is that ok with you?
Process('someProcess.exe').Close;
This will try to close the app gracefully. It will send a WM_CLOSE message to the main window. Please note that while it usually closes down apps like IE and Outlook without any problem, apps like WinWord or Notepad will open a message box asking the user whether he wants to save the changed files. Is that ok with you?