Jump to content

Recommended Posts

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 post
Share on other sites
$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 by Subz
Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...