lyledg Posted July 9, 2007 Posted July 9, 2007 Hey folks I have an executable called peimg.exe, that is spawned twice under the same name, and I am trying use STDOUTREAD to pipe this data to an edit control for the SECOND process only....... How do I get this done...please? Cheers
Thatsgreat2345 Posted July 9, 2007 Posted July 9, 2007 Well what I can think of is having the program check for the process, if it exists wait for the second one then grab is PID but distinguishing from 2 processes that are named the same is going to be hard especially if they start up at the same time. I'm curious as to why there are 2 of the same processes, if you provide some more information a different path may be able to be taken to avoid any problems of the 2 processes conflicting.
piccaso Posted July 9, 2007 Posted July 9, 2007 just as a side note, all processes returned by ProcessList() probably exist $aProcessList = ProcessList("svchost.exe") For $i = 1 To $aProcessList[0][0] ConsoleWrite($aProcessList[$i][0] & @TAB & $aProcessList[$i][1] & @CRLF) Next CoProc Multi Process Helper libraryTrashBin.nfshost.com store your AutoIt related files here!AutoIt User Map
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