notesbloke Posted November 19, 2008 Share Posted November 19, 2008 Hi, I've a script that when run launches notepad.exe, and I've compiled it into notepadrunner.exe. The problem I've got is that when I close notepad down the notepadrunner.exe still remains running in taskmanager. Is there a command to close the .exe when I close notepad? Thanks Link to comment Share on other sites More sharing options...
Madza91 Posted November 19, 2008 Share Posted November 19, 2008 From example scripts: ;waits until no instance of notepad.exe exists ProcessWaitClose("notepad.exe") ; This will wait until this particular instance of notepad has exited $PID = Run("notepad.exe") ProcessWaitClose($PID) [quote name='dbzfanatic' post='609696' date='Nov 26 2008, 08:46 AM']This is a help forum not a "write this for me" forum.[/quote](Sorry for bad English) :) Link to comment Share on other sites More sharing options...
notesbloke Posted November 19, 2008 Author Share Posted November 19, 2008 Thanks for the prompt reply. It isn't notepad.exe that I've got a problem with, it's the notepadrunner.exe that continues to run after closing notepad. Link to comment Share on other sites More sharing options...
storme Posted November 19, 2008 Share Posted November 19, 2008 G'day notesbloke The best idea when asking a question like this is to supply the source code for the script you are talking about. Most problems are generally 'bugs' in the code and maybe solved very quickly. So reply with the source "IN a code block"..... Good Luck John Morrison Some of my small contributions to AutoIt Browse for Folder Dialog - Automation SysTreeView32 | FileHippo Download and/or retrieve program information | Get installedpath from uninstall key in registry | RoboCopy function John Morrison aka Storm-E Link to comment Share on other sites More sharing options...
BinaryBrother Posted November 19, 2008 Share Posted November 19, 2008 Thanks for the prompt reply.It isn't notepad.exe that I've got a problem with, it's the notepadrunner.exe that continues to run after closing notepad.Then recompile your Notepad executor so that it 'Exits' after Notepad was successfully opened.Show some source! SIGNATURE_0X800007D NOT FOUND Link to comment Share on other sites More sharing options...
Developers Jos Posted November 19, 2008 Developers Share Posted November 19, 2008 Guess this script contains all you need: RunWait("Notepad.exe") or is this too simple? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now