Archive: Closing a running process....


Closing a running process....
  I'm trying to close a running process and can't seem to get it working, here is the part of my script which is relavant:

The window class is ATL:00445D70, can anyone tell me what I'm missing here, the process remains running.


onInit 

FindWindow$0 "ATL:00445D70"
>MessageBox MB_YESNO "Would you like run?" IDYES NoAbort
Abort # quit.
>NoAbort:
>FunctionEnd
>

Where is the code to close the application? You are only putting in the window handle in $0, nothing else.

If you want to close the application, you'll have to send a window message (most application close when sending WM_CLOSE).


Thanks! :) Got it working! :)