Old 26th September 2003, 21:28   #1
transnote
Junior Member
 
Join Date: Apr 2003
Posts: 12
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.

PHP Code:
Function .onInit 
FindWindow 
$"ATL:00445D70"
MessageBox MB_YESNO "Would you like run?" IDYES NoAbort 
Abort 
# quit. 
NoAbort
FunctionEnd 
transnote is offline   Reply With Quote
Old 26th September 2003, 22:00   #2
Joost Verburg
NSIS MUI Dev
 
Join Date: Nov 2001
Posts: 3,717
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).
Joost Verburg is offline   Reply With Quote
Old 26th September 2003, 22:35   #3
transnote
Junior Member
 
Join Date: Apr 2003
Posts: 12
Thanks! Got it working!
transnote is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump