Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Finding processes for users

$
0
0
I appologize if this is redundant but I have found some vague references in the forums for similar issues but I have not quite figured out what to do yet.

I wrote a single sign on script that launches a windows based app (not web) and logs in. I setup the script to run in the background so that the user can relogin if the inactivity timer logs them out. The script launches the app via the Run() function. I would like the script to quit when the launched application closes. The problem is that the exe file that gets launched closes once the login screen is gone and a different EXE launches for the actual application. Multiple users login to the same computer (citrix server) and are not admins.

I am trying to find the PID of the application it launches so that I can monitor it to see when it closes so I can close my script. I was playing with the WMI win32_process approach but the getuser method was always returning my username on pids that belnog to other users. (I copied the script directly from the forum howto) I also read that you have to be an admin to run it which is no good.

I either need a good method of pulling the local users PID or an idea of a different way of knowing when to close the application.

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>