oden08 Posted March 17, 2021 Share Posted March 17, 2021 Hello, I am wondering if it is possible to get the actual PID of a program I just started. For instance, each chrome tab gets it's own PID so when you run processexists() you get a PID of one of them but not a specific window. So I can open a browser window with -- run("c:\program files (x86)\Google\Chrome\Application\chrome.exe") but I might not get the pid of the actual window that I want to manipulate. I was hoping that it would be something as easy as $i=processexists("run("c:\program files (x86)\Google\Chrome\Application\chrome.exe")") but is this in any way possible? Thanks! Link to comment Share on other sites More sharing options...
Subz Posted March 17, 2021 Share Posted March 17, 2021 (edited) $iRun = Run("notepad.exe") ;~ $iRun = Pid Sorry just read your post completely, you would have to probably use WinList to get the handle of the Window based on the title of that window. Edited March 17, 2021 by Subz 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