Jump to content
Sign in to follow this  
johnnydp

How to properly detect name of exe (running app) in Windows 10

Recommended Posts

Std func does not work in Windows 10 for certain apps like Calculator, when Window is focused it's detected as 'ApplicationFrameHost.exe'

Share this post


Link to post
1 hour ago, David Heffernan said:

That's the name of the executing process. Asker wants to know about external processes. 

Oh, yeah. My reading comprehension is a bit down today I guess.

Share this post


Link to post
4 hours ago, johnnydp said:

Sorry I mean that code:

https://stackoverflow.com/questions/22002120/how-to-get-path-of-current-active-application-window

 

Thanks. Yes mentioned URLs to stackoverflow contain the same problem asking, but there are many answers and comments I don't know which one is realiable.

Has anyone had something similar in Delphi which works ?

That SO topic is the same issue as yours. You might have to do a bit of research starting there. 

 

What you need to do is find the child process that actually implements the app. Lots of code examples to do that. 

Edited by David Heffernan

Share this post


Link to post

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
Sign in to follow this  

×