❔ Question How can I get the name of the application the user is currently focused on?
So I have a .NET 7.0 app, and I want to see if the app the user is focused on is firefox/chrome, and then close the app I redirect to a weblink and I need to see if the link opened
6 Replies
I just want windows compat
Sounds dodgy
To open a web page with the default browser on windows you just launch a Process with shell execute option= true
I need to know which one opened
and I don't want to be hacky and check the registry
Process class gives the proces id
thx
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.