Find out exe file behind foreground window - Any ideas on how to do it?

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Hi, I need to know the exe file of the foreground/active window, I know you can get the window handle, window title and window class with some extensions...
    Getting the whole list of processes exes is also possible, but I have no idea on how to find out which one is in focus...
    I was thinking about trying .NET, Python (win32gui) and LUA (winapi + ffi), but I couldn't find a way of loading those libraries properly...

    Could someone please help me?

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!